[PyQt] problem in variable usage in sql statement

2008-02-07 Thread Enis Karaarslan
Hello all, I am a newbie in PyQt, just a simple question. I want to use a variable in my sql tatement. If I use string, following statment runs smoothly db.query(SELECT OS, IP_Adress FROM ServerDB WHERE IP_Adresi='10.22.5.1') s = db.store_result() But I want to use the variable chosen and

Re: [PyQt] problem in variable usage in sql statement

2008-02-07 Thread Phil Thompson
On Thursday 07 February 2008, Enis Karaarslan wrote: Hello all, I am a newbie in PyQt, just a simple question. I want to use a variable in my sql tatement. If I use string, following statment runs smoothly db.query(SELECT OS, IP_Adress FROM ServerDB WHERE IP_Adresi='10.22.5.1') s =

Re: [PyQt] problem in variable usage in sql statement

2008-02-07 Thread Enis Karaarslan
thanks for the reply, But It still doesn't work. it gives error such: Traceback (most recent call last): File main.py, line 107, in on_listWidget_itemClicked %chosen) _mysql_exceptions.ProgrammingError: (1064, You have an error in your SQL syntax; check the manual

solved - Re: [PyQt] problem in variable usage in sql statement

2008-02-07 Thread Enis Karaarslan
pardon just a line-break, special character problem solved. Thanks for your kind response Enis On Thursday 07 February 2008 11:23:43 Enis Karaarslan wrote: thanks for the reply, But It still doesn't work. it gives error such: Traceback (most recent call last): File main.py, line 107, in

Re: [PyQt] Missing ownership transfer in QStandardItem

2008-02-07 Thread Phil Thompson
On Wednesday 06 February 2008, Marius Kintel wrote: Hi, I think some of the wrapped methods of QStandardItem miss the ownership transfer, e.g.: qstandarditemmodel.sip:274: %If (Qt_4_3_0 -) void insertRows(int row, const QListQStandardItem* items); %End %If (Qt_4_3_0 -) void

Re: [PyQt] Event loop is already running warning message

2008-02-07 Thread Phil Thompson
On Tuesday 05 February 2008, Darren Dale wrote: Hello, A while back I inquired about some warning messages that appear in a threaded application at each timeout, which was addressed in a subsequent PyQt4 release: http://thread.gmane.org/gmane.comp.python.pyqt-pykde/9800/focus=9803 A

Re: [PyQt] Missing ownership transfer in QStandardItem

2008-02-07 Thread Marius Kintel
On Feb 7, 2008, at 12:58 PM, Phil Thompson wrote: Adding a /Transfer/ to these seem to fix my immediate issues. I guess the same might go for similar methods added in Qt-4.3. Do you have any in mind - I couldn't find anything. No, I just assumed that there might be others. I didn't look

[PyQt] methods with def on_

2008-02-07 Thread Enis Karaarslan
I am a newbie, so a simple question I guess. I am inheriting the design from the design file anasayfa.ui and using in my new class. I used the on_ method, instead of using signal-action way in the QlistWidget, and it works fine, def on_listWidget_itemClicked(self, item):

Re: [PyQt] Wacom tablet support

2008-02-07 Thread Jake Richards
On Tuesday 05 February 2008, Jake Richards wrote: Hello: I'm a little new to python and pyqt so please forgive any naive questions I might have :) But, what I am attempting to do is simply have my wacom tablet work similarly to my mouse in a pyqt application. It appears that left clicks,

Re: [PyQt] Event loop is already running warning message

2008-02-07 Thread Darren Dale
On Thursday 07 February 2008 07:14:41 am Phil Thompson wrote: On Tuesday 05 February 2008, Darren Dale wrote: Hello, A while back I inquired about some warning messages that appear in a threaded application at each timeout, which was addressed in a subsequent PyQt4 release:

[PyQt] RegExp and QString

2008-02-07 Thread Tiago Maluta
Hi, Following Assistant (for C++) documentation about QString split method I saw: str = Now: this sentence fragment.; list = str.split(QRegExp(\\b)); // list: [ , Now, : , this, , sentence, , fragment, . ] Now, I with python I tried, a simple example: line = p.readline() sline =

Re: [PyQt] RegExp and QString

2008-02-07 Thread Phil Thompson
On Monday 11 February 2008, Tiago Maluta wrote: Hi, Following Assistant (for C++) documentation about QString split method I saw: str = Now: this sentence fragment.; I assume that str is declared as a QString. list = str.split(QRegExp(\\b)); // list: [ , Now, : , this, , sentence, ,

Re: [PyQt] A couple of question about PyKDE4

2008-02-07 Thread Simon Edwards
Jim Bublitz wrote: Before I start out with PyKDE4, I have a couple of questions: - what is the preferred build system? cmake or configure.py? Will any of these build system vanish in the future? I haven't looked lately, but I think Simon is using cmake with the KDE SVN version. I'll be

Re: [PyQt] RegExp and QString

2008-02-07 Thread Giovanni Bajo
On 2/11/2008 7:22 AM, Tiago Maluta wrote: Following Assistant (for C++) documentation about QString split method I saw: str = Now: this sentence fragment.; list = str.split(QRegExp(\\b)); // list: [ , Now, : , this, , sentence, , fragment, . ] Not really... there's a missing QString()

Re: [PyQt] PyKDE4 on Windows

2008-02-07 Thread Jim Bublitz
On Thursday 07 February 2008 06:12, Saro Engels wrote: Hello all, As some of you might already know KDE applications are ported to MS Windows. Since I am currently trying to port the module scripts, I came by the kdebindings module as well. I added some scripts for sip and PyQt4 which seem

Re: [PyQt] methods with def on_

2008-02-07 Thread Phil Thompson
On Thursday 07 February 2008, Enis Karaarslan wrote: I am a newbie, so a simple question I guess. I am inheriting the design from the design file anasayfa.ui and using in my new class. I used the on_ method, instead of using signal-action way in the QlistWidget, and it works fine,

Re: [PyQt] A couple of question about PyKDE4

2008-02-07 Thread Marcos Dione
On Tue, Feb 05, 2008 at 12:13:28PM -0800, Jim Bublitz wrote: I'll probably do separate releases - I'm behind again and won't be releasing for a month or two. What Simon has put in KDE SVN should be current and reasonably complete, and will likely stay that way. hi Jim. next week we'll

[PyQt] Locale problem with dateEdit calendar popup

2008-02-07 Thread Igor Prischepoff
Hi there, I have dateEdit input widget with calendarPopup set to true. Underlying calendar widget shown and first comes Sunday,than Monday,then Tuesday etc.. here in Russia we counts weeks from Monday,Tuesday etc... I've discovered in docs this method:

[PyQt] PyKDE4 on Windows

2008-02-07 Thread Saro Engels
Hello all, As some of you might already know KDE applications are ported to MS Windows. Since I am currently trying to port the module scripts, I came by the kdebindings module as well. I added some scripts for sip and PyQt4 which seem to work on the first glance (they are supposed to work with

Re: [PyQt] A couple of question about PyKDE4

2008-02-07 Thread Andreas Pakulat
On 07.02.08 21:11:21, Simon Edwards wrote: The only thing missing in PyKDE4 is Phonon support, which is a little messy (or was last time I looked). IIRC, Phonon will be moving into Qt itself, possibly in Qt 4.4. In which case it'll become Phil's problem. ;-) Not exactly. As far as I've

Re: [PyQt] Wacom tablet support

2008-02-07 Thread Phil Thompson
On Thursday 07 February 2008, Jake Richards wrote: On Tuesday 05 February 2008, Jake Richards wrote: Hello: I'm a little new to python and pyqt so please forgive any naive questions I might have :) But, what I am attempting to do is simply have my wacom tablet work similarly to my

Re: [PyQt] RegExp and QString

2008-02-07 Thread Ozan Çağlayan
Tiago Maluta wrote On 11-02-2008 08:22: Hi, Following Assistant (for C++) documentation about QString split method I saw: str = Now: this sentence fragment.; list = str.split(QRegExp(\\b)); // list: [ , Now, : , this, , sentence, , fragment, . ] Now, I with python I tried, a simple

[PyQt] Model/View with multiple thread

2008-02-07 Thread Sebastian Vetter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hallo everyone, I've started working with the Model/View concept and have some questions on implementing it in a multithreading environment. I hope that some of you have some ideas or advice on that and I'll highly appreciate any! So that's the