[PyQt] Pause QProcess

2009-01-13 Thread Sergio Jovani
Hi list! In my application I've created a process with QProcess and 'ffmpeg' program. I offer to user cancelling process calling kill() method, but I don't know if pausing it would be possible. Is there any way to pause QProcess in a safe-way? Thanks!

[PyQt] Problem calling a window

2009-01-13 Thread Sandro Dutra
I'm writing a solution using Python, Qt and MySQL, I create the login screen and set all the errors... The problem is: When the user do the correct login in MySQL, I want the login screen to close, and the whole application show. The code when the button Enter is pressed:

Re: [PyQt] Problem calling a window

2009-01-13 Thread Sergio Jovani
Hi, This is a little piece of code, but you can try with: mainWnd = Pro2MainWindow() mainWnd.exec_() mainWnd.showMaximized() self.hide() 2009/1/13 Sandro Dutra hexo...@gmail.com: I'm writing a solution using Python, Qt and MySQL,

[PyQt] Problems with deletion of widgets

2009-01-13 Thread Filip Gruszczyński
At the ceratain point of my app I do: 1 self.area.setWidget(self.sheet.accept(self)) This line is called during an event handler, so it of course informs about not deleting object during an event handler. So I have written: 1 def refresh(self): 2

Re: [PyQt] Segmentation Fault working with QTextDocument/QTextEdit

2009-01-13 Thread Nahuel Defossé
El Tuesday 13 January 2009 17:11:48 Nahuel Defossé escribió: Hi I'm working on a text editor (still in very early development state). First, I tried to set my custom QTextDocument class (CodeDocument) each time a new file was opened but I always got a segementation fault. So I googled a bit

[PyQt] Application built with py2exe doesn't display jpg/gif images in QWebView

2009-01-13 Thread piotr maliński
I have a mini-browser in my app, and runned from source on Windows it works ok, but the binary made with Py2exe doesn't work ok - it doesn't display JPG/GIF images. PNG work. Adding this: data_files=[(.,[qjpeg4.dll, qgif4.dll, qico4.dll] and copying the DLLs from PyQt4 doesn't help. Can this be

Re: [PyQt] Application built with py2exe doesn't display jpg/gif images in QWebView

2009-01-13 Thread Sergio Jovani
I had this problem. I solved it copying C:\Python26\Lib\site-packages\PyQt4\plugins\imageformats\qjpeg4.dll to dist\imageformats\. I my build script I have: build.bat == C:\python26\python.exe setup.win32.py py2exe --includes sip ... mkdir dist\imageformats copy

[PyQt] Re: Problems with deletion of widgets

2009-01-13 Thread Filip Gruszczyński
I have managed to find a hideous workaround. Instead of using scrolled area I use a layout. When there is a change in the model structure, I hide old widgets and add new one. When there are more than one hidden widget I delete the oldest - this way I am not longer deleting it during event handler.

Re: [PyQt] Application built with py2exe doesn't display jpg/gif images in QWebView

2009-01-13 Thread piotr maliński
Works, many Thanks :) W dniu 13 stycznia 2009 23:44 użytkownik Sergio Jovani lese...@gmail.comnapisał: I had this problem. I solved it copying C:\Python26\Lib\site-packages\PyQt4\plugins\imageformats\qjpeg4.dll to dist\imageformats\. I my build script I have: build.bat ==

[PyQt] When can I use 'super' and When I can not

2009-01-13 Thread Steven Woody
Hi, In the book 'Rapid GUI Programming with Python and Qt', chapter 5, the author said that the 'super' method won't work in an example code, that is a override 'accept()' method, in the end of the 'accept()' method, one need to call base class's 'accept()' method. But if you write the code