<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel about="http://blog.gmane.org/gmane.comp.python.pyqt-pykde">
    <title>gmane.comp.python.pyqt-pykde</title>
    <link>http://blog.gmane.org/gmane.comp.python.pyqt-pykde</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13067"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13065"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13061"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13055"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13052"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13051"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13050"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13049"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13044"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13043"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13042"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13038"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13036"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13035"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13024"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13023"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13022"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13019"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13015"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13014"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13067">
    <title>pyqt slow</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13067</link>
    <description></description>
    <dc:creator>Aminu D</dc:creator>
    <dc:date>2008-09-06T18:03:18</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13065">
    <title>(no subject)</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13065</link>
    <description/>
    <dc:creator>projetmbc&lt; at &gt;club-internet.fr</dc:creator>
    <dc:date>2008-09-06T16:15:06</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13061">
    <title>help with QSplitter and showMaximized?</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13061</link>
    <description>Hi, can someone help me with this
i'm new to Qt so it could be something simple..

--

from PyQt4.QtGui import *
app = QApplication([])
mainWin = QMainWindow()
mainWin.showMaximized()
menu = mainWin.menuBar()
menu.addAction("test")
frame = QFrame(mainWin)
frame.move(0, menu.height())
Vsplitter = QSplitter(frame)
testlbl = QLabel('test')
Vsplitter.addWidget(testlbl)
mainWin.show()
app.exec_()

--

The problem is that the 'test' label doesn't show up because of the
showMaximized call.  If I put that at the end of everything else, the
test label shows up.  Or if I leave it out, run it, then click the
maximize button the test label is still there.  In my actual app I
can't just put showmaximized at the end because some things will need
to be added dynamically.

Also, the reason I use the frame is that if I don't, the test label
and the menu bar try to take up the same space..

thx
-inhahe
</description>
    <dc:creator>inhahe</dc:creator>
    <dc:date>2008-09-06T05:08:51</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13055">
    <title>QCheckBox in a QTreeWidget</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13055</link>
    <description/>
    <dc:creator>Jake Richards</dc:creator>
    <dc:date>2008-09-05T21:19:22</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13052">
    <title>connect some times doesn't work with lambda syntax</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13052</link>
    <description>Few weeks ago I posted here to find help about a problem with my application
[http://www.mail-archive.com/pyqt&lt; at &gt;riverbankcomputing.com/msg14774.html] :
running the very same code on different operating systems produced
different results.

In particular on Fedora9 and Mac-OsX my program never registered
sqlite db variations on disk, using Qt4's APIs, while every thing
worked fine on Fedora 8 and Windows.

No one answered to me and I was hopeless to find a solution.
So I rolled back onto older versions of my software, till I found a
version that worked every where.
Then applying one by one all the differences  to my code, I was able
to identify the cause, but I wasn't able to understand it, so I ask an
other time for help.

This is the 'wrong' code:
        self.connect(self,
            QtCore.SIGNAL("customContextMenuRequested(const QPoint &amp;)"),
            lambda coord: self.ctxmenu.popup(self.mapToGlobal(coord)))

I had to substitute it with:
        self.connect(self,
            QtCore.SIGNAL("customConte</description>
    <dc:creator>IloChab</dc:creator>
    <dc:date>2008-09-05T20:05:13</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13051">
    <title>Painting an arc... can't be that hard?</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13051</link>
    <description>So, using PyQt4/WindowsXP:  

I'm attempting to adapt the basic drawing example for the simple purpose of
drawing an arc on the background of a widget.  The following code opens a
main window with a child widget inside, but doesn't draw the arc.  Probably
something simple that I'm missing, but I can't spot it... My eyes are
crossing from reading the documentation and attempting different things.

What have I missed? 

import sys
from PyQt4 import QtGui, QtCore
    
class GroupDialog(QtGui.QWidget):
    def __init__(self):
        QtGui.QWidget.__init__(self)
               
        self.setBackgroundRole(QtGui.QPalette.Base)
        self.drawMe()
        
    def drawMe(self):

        self.update()
        
    def paintEvent(self, event):
    
        rect = QtCore.QRect(10, 20, 80, 60)

        self.pen = QtGui.QPen(QtCore.Qt.blue)
        self.pen.setWidth(2)
        self.pen.setCapStyle(QtCore.Qt.RoundCap)
        self.pen.setStyle(QtCore.Qt.SolidLine)

        startAngle = 30 * 16
        arcLength = 1</description>
    <dc:creator>Scott Price</dc:creator>
    <dc:date>2008-09-05T18:47:31</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13050">
    <title>Toolbar widget sizing problems</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13050</link>
    <description>Hi there,

I'm running WindowsXP.

So using PyQt4x I set up a toolbar, add a line edit to it, set the geometry
and sizepolicy of the line-edit widget, and watch as the toolbar promptly
ignores any directions I give the child widget!  

Is there a secret to making the toolbar respect the size policies and
geometry that is set on its child widgets?  I suspect (not sure about this)
that in the process of re-parenting the child widget when adding to the
toolbar those are being reset to some default, but the documentation neither
explains this nor hints at it.  

Sample code:

        vMax = QtGui.QSizePolicy()
        vMax.setVerticalPolicy(QtGui.QSizePolicy.Minimum)
        vMax.setHorizontalPolicy(QtGui.QSizePolicy.Minimum)

        goGroup = QtGui.QGroupBox()
        goGroup.setGeometry(QtCore.QRect(0,0,350,30))
        goGroup.setFlat(True)
        goGroup.setTitle(self.tr("Go To:"))

        layout = QtGui.QHBoxLayout()
        
        goTo = QtGui.QLineEdit()
        layout.addWidget(goTo)
        
      </description>
    <dc:creator>Scott Price</dc:creator>
    <dc:date>2008-09-05T18:47:31</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13049">
    <title>Akonadi and PyKde</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13049</link>
    <description/>
    <dc:creator>Jens Wennberg</dc:creator>
    <dc:date>2008-09-05T10:00:38</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13044">
    <title>How to link a dict and a QComboBox</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13044</link>
    <description>I'm facing a problem with data from a SQL database and my GUI.

Let's assume I have the following key =&gt; value dict:
sqlresult = {1: 20080909, 4: 202020, 5: 'bla', 6: 'blubb'}

How do I link it to a QComboBox?

In HTML this would be the standard &lt;select&gt; procedure:
&lt;select&gt;
&lt;option value="1"&gt;20080909&lt;/option&gt;
&lt;option value="4"&gt;202020&lt;/option&gt;
&lt;/select&gt;

As far as I know there is no such thing like "value" for a QComboBox.
My guess would be to create a dict that links the two objects. Then I
could basically do something like this:
selectedValue = sqlresult[CBIndexToKey[QComboBox.selectedIndex()]]

But I feel a little bit uneasy about this... isn't there a better way?

Regards,
Sven Grunewaldt

...by the way...
How do I respond to something in this mailing list? When I just click
Reply I send a mail directly to the user who sent the original message.
(Sorry Phil!)
Do I just click "Reply" and change the receiver to
pyqt&lt; at &gt;riverbankcomputing.com? I don't understand how programs like
Thunderbird create the (very </description>
    <dc:creator>Sven Grunewaldt</dc:creator>
    <dc:date>2008-09-04T18:25:24</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13043">
    <title>Best Widget to Use for Contact List</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13043</link>
    <description/>
    <dc:creator>Vinod Khare</dc:creator>
    <dc:date>2008-09-04T17:19:57</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13042">
    <title>how to import pykde ?</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13042</link>
    <description>Hello world,

I got a (beginner?) problem initializing some objects, for instance of the 
class KAboutData:
  *works:
     from kdecore import KAboutData 
     (how to be sure of the kdecore version used? I suspect it's from kde 3,
     help(KAboutData) is not explicit) 
  *does not work, although is favoured by documentation [0]:
     from PyKDE4.kdecore import KAboutData'.
     (help(KAboutData) refers to kde4 classes)

However, it seems I cannot use both kinds of imports in the same program (both 
wrap the QObject class...).

So, should I use only the first kind of import ? Will it work ?

I join a small test generating errors on a debian and an ubuntu:
% python test.py pykde4
-&gt;
debian sid/experimental on sept 4th 2008 :
TypeError: argument 1 of KAboutData() has an invalid type
  Python             2.5.2
  python-kde4        4.0.2-1-1
  python-sip4        4.7.7-1
TypeError: argument 3 of KAboutData() has an invalid type
  kubuntu 8.4
  Python             2.5.2
  python-kde4        4:4.0.3-0ubuntu1.2
  py</description>
    <dc:creator>Feth AREZKI</dc:creator>
    <dc:date>2008-09-04T14:29:55</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13038">
    <title>Handling python exceptions in virtual overrides</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13038</link>
    <description>
If I understand correctly, there is currently no way to "handle" python 
exceptions that occur inside a python member function when called via a c++ 
virtual function.

%MethodCode is insufficient because it is never called when the member 
function is called via a c++ virtual function.

%VirtualCatcherCode is insufficient because you have no access to sipCpp, 
sipSelf, etc.


I think a workable solution would be a new directive %VirtualErrorCode.

A generated virtual function with %VirtualErrorCode could look like the 
following

void sipMyClass::myVirtualMember()
{
    extern void sipVH_MyModule_1(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = 
sipIsPyMethod(&amp;sipGILState,&amp;sipPyMethods[16],sipPySelf,NULL,sipNm_MyModule_myVirtualMember);

    if (!meth)
    {
        MyClass::myVirtualMember();
        return;
    }
    bool isError = false;
    sipVH_MyModule_1(sipGILState,meth,&amp;isError);
    if( isError ) {
        // %VirtualErrorCode inserted here
    }
}

T</description>
    <dc:creator>Matt Newell</dc:creator>
    <dc:date>2008-09-03T21:31:38</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13036">
    <title>help learning pyqt</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13036</link>
    <description>Hello all, im just learning pyqt and after tons of reading, especially
on the windows bindings for cross dev compatibility I finally decided
to give pyqt4 a try

now keep in mind im doing this on a windows box,

I downloaded a ton of tutorials, howtos, etc and everything seemed to
work as expected, but enter my first attempt at duplicating a couple
of basic features to make sure I had it.


using qt designer on windows I created a form with a button (the
famous "hello world!" button) and made an attempt to connect the
clicked() signal of the button to the close() slot of the form.

saved my .ui file

pyuic4 converted my .ui file to a _ui.py file

and then I wrote the main .py file to launch the app.

the form with button launches fine clicking on the button hides/closes
the button, NOT the form like I thought it should.

I havent been home to check this same behavior on a linux box so it
may well be a windows specfic thing

Ive attached the .py and the _ui.py files to this question, so can
someone explain wh</description>
    <dc:creator>Rance Hall</dc:creator>
    <dc:date>2008-09-03T19:43:12</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13035">
    <title>SIP and __doc__ strings</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13035</link>
    <description/>
    <dc:creator>Mark A. Schmucker</dc:creator>
    <dc:date>2008-09-03T19:24:35</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13024">
    <title>max texture size for QGLWidget.bindTexture?</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13024</link>
    <description>I've noticed that If I try to use bindTexture on QPixmaps that are large 
(the size of the screen), and then display them on a quad, only a 
portion of the texture actually shows.  The rest of the surface is 
either black or a scrambled jumble of other textures.  If I use a 
smaller image there is no problem, but I can't find any references to a 
max texture size in the documentation.  I tried increasing the texture 
cache size but that had no effect.  Is there a limit on texture size, 
and if so, how do you determine it?
</description>
    <dc:creator>Brian Parma</dc:creator>
    <dc:date>2008-09-02T19:49:54</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13023">
    <title>Lambdas, Closures and Garbage Collection</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13023</link>
    <description>
Hi Phil,

   The documented behavior of sip/pyqt - to keep strong references to 
slots except instance methods - isn't desirable from our project's point 
of view.  Is there any easy way to patch SIP to disable this behavior?  
We'd like closures, lambdas, etc. to be garbage collected if no other 
strong reference remains to them.

Thanks,
   Charles

from http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#pyqt-slots-and-qt-slots

Note that when a slot is a Python callable its reference count is not 
increased. This means that a class instance can be deleted without 
having to explicitly disconnect any signals connected to its methods. 
However, if a slot is a lambda function or a partial function then its 
reference count is automatically incremented to prevent it from being 
immediately garbage collected.


from http://www.riverbankcomputing.co.uk/static/Downloads/sip4/ChangeLog

2007/07/14 15:31:37  phil
Rather than only lambda functions being given an extra reference when used as a
slot</description>
    <dc:creator>charles matthew chen</dc:creator>
    <dc:date>2008-09-02T18:30:20</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13022">
    <title>Compiling PyQt on Windows (vista)</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13022</link>
    <description/>
    <dc:creator>Gustavo A. Díaz</dc:creator>
    <dc:date>2008-09-02T17:28:16</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13019">
    <title>QVariant bug(?)</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13019</link>
    <description>I have created a simple test case which triggers a likely bug in PyQt.
As the case demonstrates, I have a class template "PropertyValue"
which I wrap and use with QVariant. When I run the test program
("tst.py") however, there is a segfault in the PropertyValue copy
constructor. The reason as far as I've been able to tell is that PyQt
doesn't register its own metatype for "StringValue"
(PropertyValue&lt;QString&gt;), since this is already constructed for the
C++ type (see qobject.sip, line 1479), with chaotic results (the C++
copy constructor receives a raw PyObject for the right-hand-side
argument).

Arve
</description>
    <dc:creator>Arve Knudsen</dc:creator>
    <dc:date>2008-09-02T09:29:00</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13015">
    <title>Calling protected methods on objects</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13015</link>
    <description>Hello Phil,

I'm busy working on integrating Python with Plasma in KDE 4. The API for 
doing network distributed applets is a bit convoluted, there is a lot of 
delegation of methods calls to other objects. I've hit a part where it 
would be really handy if I could call protected methods on objects which 
were not created by Python itself. SIP appears to explicitly prevent 
this kind of access, although I've commented out the check in 
getComplexCppPtr() and it appears to work fine.

* Is there a technical reason why this is forbidden? or is it more 
philosophical?

* I would like an official way in SIP to call protected 
methods/functions regardless of where the object came from. Perhaps, 
just a way to "unlock" an instance making all of its method available. 
Is this possible?

cheers,

</description>
    <dc:creator>Simon Edwards</dc:creator>
    <dc:date>2008-09-01T20:29:37</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13014">
    <title>data widget mapper not committing</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13014</link>
    <description>
Hi,

I have a form in which I use a QDataWidgetMapper object.  When I try  
to submit values from the form back to the DB, no data gets written.   
However, mapping field values from my DB to the widgets on the form  
behaves flawlessly.

(See attached source code file.  The Postgresql schema for the table  
in question is listed at the top of the file.  It's only 3 fields long.)

Am I missing something obvious?  I've tried to peek inside using  
queryModel.lastError(), but it's returning a memory address.  Not sure  
how to get a string from this method.

I hope someone on the list can help shed light on this problem.

Thanks in advance!
Scott







</description>
    <dc:creator>Scott Frankel</dc:creator>
    <dc:date>2008-09-01T16:40:40</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13000">
    <title>[PyKDE] KTextEditor interface classes</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyqt-pykde/13000</link>
    <description>KTextEditor works with an interface class -- implementors of the
interface subclass
KTextEditor::View and KTextEditor::Document, with the subclasses also inheriting
from any interfaces that they choose to support. This is a problem --
I can't see
a way to cast to the required type.

Even though I can check at run-time whether my view implements an interface
with something like:

True

I cannot use anything to cast to the appropriate type to get at the
methods provided
by the interface.

Is there a solution to this problem?


Regards,
Paul
</description>
    <dc:creator>Paul Giannaros</dc:creator>
    <dc:date>2008-08-29T22:02:04</dc:date>
  </item>
  <textinput about="http://search.gmane.org/?group=$group=gmane.comp.python.pyqt-pykde">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.python.pyqt-pykde</link>
  </textinput>
</rdf:RDF>
