Re: [PyQt] best practices for MDI app

2010-07-15 Thread Mark Summerfield
On 2010-07-14, Lic. José M. Rodriguez Bacallao wrote: how to view different windows at the same time using dock widgets? We are developing a medical image viewer and we need to have the possibility of viewing several images(series) at the same time. We have tried MdiAre but it doesn't work

Re: [PyQt] TypeError thrown by rowsAboutToBeRemoved() when deleting a row from a QAbstractTableModel

2010-07-15 Thread Simon Hibbs
I'm an idiot. It wasn't the rowsAboutToBeRemoved method of the model that was the problem. It was the rowsAboutToBeRemoved method in one of my QAbstractItemView subclasses. I was missing the 'self' reference in the arguments lists. Duh! Oh boy, did that take some tracking down. If I'd had an

Re: [PyQt] best practices for MDI app

2010-07-15 Thread Lic . José M . Rodriguez Bacallao
as dock widgets can only be placed in a main window, can I make an internal main window as central widget of my main application windows and then treat dock widgets in the central main window widget as my display windows? this central main window doesn't have any central widget at all. is this ok?

Re: [PyQt] best practices for MDI app

2010-07-15 Thread Mark Summerfield
On 2010-07-15, Lic. José M. Rodriguez Bacallao wrote: as dock widgets can only be placed in a main window, can I make an internal main window as central widget of my main application windows and then treat dock widgets in the central main window widget as my display windows? this central main

Re: [PyQt] sip_api_can_convert_to_type chokes on converting a Python list to a QLIst of enums.

2010-07-15 Thread Phil Thompson
On Wed, 14 Jul 2010 10:42:42 +0200, Gerard Vermeulen gav...@gmail.com wrote: Hi, I have the following sip declaration (left some irrelevant ConvertToSubclass stuff out): class QwtPickerMachine { %TypeHeaderCode #include qwt_picker_machine.h %End // %TypeHeaderCode public: enum

[PyQt] ANN: SIP v4.10.4 and New PyQt Installer for Python v2.7 Released

2010-07-15 Thread Phil Thompson
SIP v4.10.4 has been released. This works around an apparent bug in Python v2.7. All other versions of Python are unaffected. A new PyQt Windows installer for Python v2.7 has been released. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com

Re: [PyQt] redo and undo for QTableWidget

2010-07-15 Thread David Boddie
On Wed, 14 Jul 2010 22:25:09 -0400, He Jibo wrote: Could someone recommend me a sample on how to implement redo and undo for QTableWidget? Thanks. I find this article, but it does not work. http://diotavelli.net/PyQtWiki/Undo%20and%20redo%20with%20line%20edits If you are comfortable with

[PyQt] mov or image sequences in Pyqt

2010-07-15 Thread Taylor Carrasco
Not looking for anyone to write the code for me, just wondering if anyone has any success with this? I want to be able to use Pyqt to make a simple movie player, perhaps there is already functionality in widgets that do this? Thoughts? ___ PyQt mailing

Re: [PyQt] mov or image sequences in Pyqt

2010-07-15 Thread Hugo Léveillé
I asked the exact same question a week ago :) The answer was to use the Phonon module. Quicktime will play nativly under OSX, but not under XP. Havent tested Win7 but heard the quicktime was playing nativly so might be supported On Fri, 16 Jul 2010 11:19 +1200, Taylor Carrasco

Re: [PyQt] mov or image sequences in Pyqt

2010-07-15 Thread Taylor Carrasco
Yeah I saw that thread right after I asked my question haha - BUT it doesn't answer the image sequence question. It would probably be easier form me to simply load an image sequence and use QTimers to swap them - Anything like that around for PyQt ? On Fri, Jul 16, 2010 at 12:16 PM, Hugo

[PyQt] Sefgault on exit with QThread

2010-07-15 Thread Nate C
Hi, I have a program thats segfualts on exit which uses QThread. If I remove the start call from the worker the program works fine. The thread works fine throughout the application it is only on exit that it segfaults. This is the most basic case. version: --

Re: [PyQt] Sefgault on exit with QThread

2010-07-15 Thread Nate C
I just switched this to pure Qt without plasma and it now works. from PyQt4.QtGui import * from PyQt4.QtCore import * class Thread(QThread): def __init__(self, parent=None): QThread.__init__(self, parent) def run(self): return class Widget(QMainWindow): def

Re: [PyQt] best practices for MDI app

2010-07-15 Thread Lic . José M . Rodriguez Bacallao
and how do I add QDockWidgets to a custom widget to get the desired behavior? On 7/15/10, Mark Summerfield l...@qtrac.plus.com wrote: On 2010-07-15, Lic. José M. Rodriguez Bacallao wrote: as dock widgets can only be placed in a main window, can I make an internal main window as central widget

Re: [PyQt] Sefgault on exit with QThread

2010-07-15 Thread Nate C
Oh, I've figured out the first example starts a race condition if the thread has not exited yet. When I called wait() on the thread it worked fine. I have posted a new and better example in a new thread. -- Thanks, Nate Carson ___ PyQt mailing list