Re: [PyQt] derive from a designer widget

2009-03-13 Thread Mario Daniel Carugno
2009/3/12 Mario Daniel Carugno : > 2009/3/12 Andreas Pakulat : >>> Thank you Andreas, i'll try it. Just in case, do you have some example >>> of that ? >> >> Its pretty easy (from the top of my head, so might not work right away, but >> you should get the idea) >> >> class MyMainWindow(QMainWindow)

[PyQt] Re: PyQT lost reference (was: Re: PyKDE: KConfigSkeleton not writing configuration)

2009-03-13 Thread Till Gerken
Hi, sorry for keeping replying to myself, but nobody else seems to show interest and I am trying to find the root cause of the error: The QString() that I am passing as reference to the C++ class KCoreConfigSkeleton exists as local variable in my Python class derived from KCoreConfigSkeleton. Now

Re: [PyQt] Re: PyQT lost reference (was: Re: PyKDE: KConfigSkeleton not writing configuration)

2009-03-13 Thread Phil Thompson
On Fri, 13 Mar 2009 11:15:41 +0100, Till Gerken wrote: > Hi, > > sorry for keeping replying to myself, but nobody else seems to show > interest and I am trying to find the root cause of the error: > > The QString() that I am passing as reference to the C++ class > KCoreConfigSkeleton exists as l

[PyQt] Re: PyQT lost reference (was: Re: PyKDE: KConfigSkeleton not writing configuration)

2009-03-13 Thread Wolfgang Rohdewald
On Freitag, 13. März 2009, Till Gerken wrote: > The QString() that I am passing as reference to the C++ class > KCoreConfigSkeleton exists as local variable in my Python class > derived from KCoreConfigSkeleton. Now any code that interacts with > KCoreConfigSkeleton (C++ or Python) may change this

Re: [PyQt] Re: PyQT lost reference (was: Re: PyKDE: KConfigSkeleton not writing configuration)

2009-03-13 Thread Phil Thompson
On Fri, 13 Mar 2009 11:44:57 +0100, Wolfgang Rohdewald wrote: > On Freitag, 13. März 2009, Till Gerken wrote: > >> The QString() that I am passing as reference to the C++ class >> KCoreConfigSkeleton exists as local variable in my Python class >> derived from KCoreConfigSkeleton. Now any code tha

Re: [PyQt] Re: PyQT lost reference (was: Re: PyKDE: KConfigSkeleton not writing configuration)

2009-03-13 Thread Wolfgang Rohdewald
On Freitag, 13. März 2009, Phil Thompson wrote: > Which is why eliminating QStrings is an incompatible change and will > require changes to your code. Sorry, it seems I misread your roadmap - I thought this would be a compatible change. -- Wolfgang _

[PyQt] Executing function with argument under a button in pyqt

2009-03-13 Thread klia
hey guys; I have this function that is suppose to extract Exif(exchangeable image formate) from photos and direct the output to an .CSV file (comma seperated values) well the function syntax is like the following: was...@home:~/Desktop/Project2/GUI$ python myexif.py -q waseem1.JPG > test.csv i

[PyQt] Reducing Ram Usage Tips?

2009-03-13 Thread Darryl Wallace
Hello, I've recently developed a data analysis program using PyQt. It's not a huge program but it's not small either. I've noticed that, in Windows, the memory usage at startup is ~80MB. I've removed all of the 'import *'s that I previously had and do not load the Qt module at any location.

Re: [PyQt] derive from a designer widget

2009-03-13 Thread Andreas Pakulat
On 13.03.09 06:36:04, Mario Daniel Carugno wrote: > 2009/3/12 Mario Daniel Carugno : > > 2009/3/12 Andreas Pakulat : > >>> Thank you Andreas, i'll try it. Just in case, do you have some example > >>> of that ? > >> > >> Its pretty easy (from the top of my head, so might not work right away, but > >

Re: [PyQt] Executing function with argument under a button in pyqt

2009-03-13 Thread Till Gerken
On Fri, Mar 13, 2009 at 2:23 PM, klia wrote: > I have this function that is suppose to extract Exif(exchangeable image > formate) from photos and direct the output to an .CSV file (comma seperated > values) > > well the function syntax is like the following: > > was...@home:~/Desktop/Project2/GUI$

Re: [PyQt] Executing function with argument under a button in pyqt

2009-03-13 Thread klia
Till Gerken-2 wrote: > > On Fri, Mar 13, 2009 at 2:23 PM, klia wrote: >> I have this function that is suppose to extract Exif(exchangeable image >> formate) from photos and direct the output to an .CSV file (comma >> seperated >> values) >> >> well the function syntax is like the following: >>

Re: [PyQt] derive from a designer widget

2009-03-13 Thread Mario Daniel Carugno
2009/3/13, Andreas Pakulat : > > I want that it could be as simple as derivating the 'data' class > > from the 'main window' class. I've read that derivating a widget > > from another one, makes that widget to appear inside it's parent, > > right ? > > No thats wrong. Deriving one class from an

Re: [PyQt] Reducing Ram Usage Tips?

2009-03-13 Thread stan
On Fri, 2009-03-13 at 09:37 -0400, Darryl Wallace wrote: > Hello, > > I've recently developed a data analysis program using PyQt. It's not a > huge program but it's not small either. I've noticed that, in Windows, > the memory usage at startup is ~80MB. I've removed all of the 'import > *'s

Re: [PyQt] Reducing Ram Usage Tips?

2009-03-13 Thread Darryl Wallace
Hello Stan stan wrote: On Fri, 2009-03-13 at 09:37 -0400, Darryl Wallace wrote: Hello, I've recently developed a data analysis program using PyQt. It's not a huge program but it's not small either. I've noticed that, in Windows, the memory usage at startup is ~80MB. I've removed all of

Re: [PyQt] Executing function with argument under a button in pyqt

2009-03-13 Thread Till Gerken
On Fri, Mar 13, 2009 at 2:59 PM, klia wrote: > Till Gerken-2 wrote: >> On Fri, Mar 13, 2009 at 2:23 PM, klia wrote: >>> I have this function that is suppose to extract Exif(exchangeable image >>> formate) from photos and direct the output to an .CSV file (comma >>> seperated >>> values) >>> >>> w

Re: [PyQt] Reducing Ram Usage Tips?

2009-03-13 Thread stan
OK, Darryl, thanks for that "time saving" response! I was pretty sure that was the case. Hope the other solution helps you some... will post again if I find anything relevant as I continue on...! On Fri, 2009-03-13 at 10:44 -0400, Darryl Wallace wrote: > Hello Stan > > stan wrote: > > On Fri, 20

Re: [PyQt] derive from a designer widget

2009-03-13 Thread Andreas Pakulat
On 13.03.09 12:18:24, Mario Daniel Carugno wrote: > 2009/3/13, Andreas Pakulat : > > > I want that it could be as simple as derivating the 'data' class > > > from the 'main window' class. I've read that derivating a widget > > > from another one, makes that widget to appear inside it's parent, >

Re: [PyQt] Re: PyQT lost reference (was: Re: PyKDE: KConfigSkeleton not writing configuration)

2009-03-13 Thread Till Gerken
On 3/13/09, Phil Thompson wrote: > On Fri, 13 Mar 2009 11:44:57 +0100, Wolfgang Rohdewald > wrote: >> On Freitag, 13. März 2009, Till Gerken wrote: >> >>> The QString() that I am passing as reference to the C++ class >>> KCoreConfigSkeleton exists as local variable in my Python class >>> derived

[PyQt] QDataStream and arbitrary Python objects

2009-03-13 Thread Scott Ballard
I'm a bit of a PyQt newbie but have plenty of Python experience. Does anyone know if arbitrary Python objects will be supported by QDataStream in PyQt 4.5? I'm looking for a method of using PyQts model/view programming and its drag and drop functionality with Python's base object class which

Re: [PyQt] Executing function with argument under a button in pyqt

2009-03-13 Thread Scott Ballard
I came across this link while I was trying to do the same thing. It explained everything and might help you with passing arguments. http://blog.qgis.org/node/102 Cheers, -Scott klia wrote: Till Gerken-2 wrote: On Fri, Mar 13, 2009 at 2:23 PM, klia wrote: I h

Re: [PyQt] QDataStream and arbitrary Python objects

2009-03-13 Thread Phil Thompson
On Sat, 14 Mar 2009 07:54:07 +1000, Scott Ballard wrote: > I'm a bit of a PyQt newbie but have plenty of Python experience. > > Does anyone know if arbitrary Python objects will be supported by > QDataStream in PyQt 4.5? No. > I'm looking for a method of using PyQts model/view programming and