[PyQt] "Image view" problem

2008-02-28 Thread Enis Karaarslan
Hello all, I want to show a graph (png file) about network traffic usage in my pyQt application. The following works, but I want to put the picture in the main window. image = Image.open ('ragraph.png') image.show() A simple question I guess, but as a newbie - I couldn't suceed. I put a grap

[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):

solved - Re: [PyQt] problem in

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): >

Re: [PyQt] problem in

2008-02-07 Thread Enis Karaarslan
e last line db.query(""" SELECT OS, IP_Adress FROM ServerDB WHERE IP_Adress = '%s' """ % chosen) thanks, On Thursday 07 February 2008 11:03:55 Phil Thompson w

[PyQt] problem in

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