[PyKDE] eric3 and pyqt4

2007-02-13 Thread Georg Damm
Hello, is there a tutorial how to use eric3 (3.9.1 debian etch) with pyqt4? I've problems to execute the qt4-designer from eric3 and I'm wondering if that's only possible with eric4 or if there is a tiny option that I've overlooked ;) Georg ___ PyKDE

Re: [PyKDE] Keeping the GUI from freezing

2007-02-13 Thread Dave Fancella
On Tuesday 13 February 2007 3:08 pm, Tony Cappellini wrote: > > If your thread inherits QObject somehow, you can just do: > > So currently, I'm not using threads or popen. I'm using the ugly hack > which does an exec, which was recently posted- as a work around not > being able to catch the output

Re: [PyKDE] Keeping the GUI from freezing

2007-02-13 Thread Tony Cappellini
If your thread inherits QObject somehow, you can just do: Sorry- this thread has gotten complicated. At the moment, I'm not using threads. However, in earlier versions of the program I was using a thread to process popen() to grab the target apps output. Now that the target app is using logging,

Re: [PyKDE] Keeping the GUI from freezing

2007-02-13 Thread Dave Fancella
On Tuesday 13 February 2007 2:32 pm, Tony Cappellini wrote: > So - before this gets called, I need to setup a timer to refresh the > GUI at regular intervals, I'm just not sure how. I understand the > timer, I just don't know what to call in QT's framework. If your thread inherits QObject somehow

Re: [PyKDE] Keeping the GUI from freezing

2007-02-13 Thread Carles Pina i Estany
Hi, On Feb/13/2007, Tony Cappellini wrote: > Does anyone have a Python example of how to use a Thread to keep a gui > from becoming unresponsive? for example, I create a thread and then I send Events to main thread (who containts de GUI). To send events I use setData and postEvent. main thread

re:[PyKDE] Keeping the GUI from freezing

2007-02-13 Thread Tony Cappellini
I started out using Popen() in a thread, and that worked fine. The author of the app that I'm calling then decided to use the logging module, and I could not capture the output any longer. He then suggested a really ugly hack. It works, but it's not nice. I"m between a rock & a hard place. He do

Re: [PyKDE] Keeping the GUI from freezing

2007-02-13 Thread Paul Giannaros
On Tuesday 13 February 2007 18:12, Tony Cappellini wrote: > My Gui is calling another Python script which is doing a lot of file I/O. > Because of this the GUI freezes until that app returns. > > I've called that app using a python thread, but I still need a way to > refresh the GUI so it doesn't h

[PyKDE] Keeping the GUI from freezing

2007-02-13 Thread Tony Cappellini
My Gui is calling another Python script which is doing a lot of file I/O. Because of this the GUI freezes until that app returns. I've called that app using a python thread, but I still need a way to refresh the GUI so it doesn't hang. I've looked at the QAssistant API for QThreads, but I don't

Re: [PyKDE] positioning the vertical Scrollbar in a TextEdit box

2007-02-13 Thread dougb
Tony Cappellini wrote: > When I add text to a TextEdit box, the vertical scrollbar appears, and > the slider is at the bottom of the text. > > I want to move the slider to the top of the text, but the Slider > attributes of the Scrollbar are not available from within the TexEdit > widget. At least

Re: [PyKDE] positioning the vertical Scrollbar in a TextEdit box

2007-02-13 Thread Andreas Pakulat
On 13.02.07 01:12:08, Tony Cappellini wrote: > When I add text to a TextEdit box, the vertical scrollbar appears, and > the slider is at the bottom of the text. > > I want to move the slider to the top of the text, but the Slider > attributes of the Scrollbar are not available from within the TexE

Re: [PyKDE] Toolbars and widget

2007-02-13 Thread Andreas Pakulat
On 13.02.07 10:33:05, duncan duncan wrote: > I have am trying to port an application from Delphi to python/qt. > This application have some toolbars that have some action button and some > other widgets (combo boxes). > I am looking for a way to duplicate the toolbars with Qt-designer but it > see

[PyKDE] Toolbars and widget

2007-02-13 Thread duncan duncan
I have am trying to port an application from Delphi to python/qt. This application have some toolbars that have some action button and some other widgets (combo boxes). I am looking for a way to duplicate the toolbars with Qt-designer but it seems that it is no longer possible to add different wi

[PyKDE] positioning the vertical Scrollbar in a TextEdit box

2007-02-13 Thread Tony Cappellini
When I add text to a TextEdit box, the vertical scrollbar appears, and the slider is at the bottom of the text. I want to move the slider to the top of the text, but the Slider attributes of the Scrollbar are not available from within the TexEdit widget. At least I don't see how to access them.