[PyQt] Wrapping const char * const * in sip

2010-05-07 Thread dcassidy36
This is valid C++ syntax, but SIP does not seem to like it. How do I wrap the code mentioned below? sip: sip/ptlib/PInternetProtocol.sip:63: syntax error Error: Unable to create the C++ code. class PInternetProtocol { protected: PInternetProtocol( const char * defaultServiceName,

Re: [PyQt] signals and dialogs

2010-03-02 Thread dcassidy36
Your code is not going to work. You are trying to connect to a signal that has already been emitted. For this to work, you need to manually call emitSignal AFTER you create your Foo() Dialog. if dialog.exec_(): print dialog executed dialog.emitSignal() emitSignal()... dialog executed

Re: [PyQt] how to open a gui module?

2010-03-02 Thread dcassidy36
Can you post some sample code of what you are trying to do? -- Regards, -Demetrius Cassidy p...@patx.me wrote: = I have coded a GUI, in a .py... It is called foo.py. Then in another GUI, bar.py, I need to be able to open/display/execute foo.py. So basically I need to use the

Re: [PyQt] how to open a gui module?

2010-03-02 Thread dcassidy36
I still don't quite understand what you are trying to do. Are you trying to open TestApp on event changes from the Calendar widget? Or are you just trying to open a dialog within another dialog? Because it's the same code that you have in your __main__ section. t = TestApp() t.show() And you

Re: [PyQt] Limit the height of a Layout

2010-03-02 Thread dcassidy36
Are you using QtDesigner? You can set the min and max size for each widget, so I'd probably look at that. -- Regards, -Demetrius Cassidy starglider develop starglider@gmail.com wrote: = Hello, I'm a newby and I have a question: how can I limit the height of a QHBoxLayout?

[PyQt] configure.py does not add qpy release folder to Makefile when compiling w/debug symbols

2010-01-24 Thread dcassidy36
If you run configure.py with -u option (debug symbols), it will only add the debug folders the Makefiles like: /LIBPATH:C:\PyQt-win-gpl-4.7\qpy\QtCore\debug, but you are actually compiling both debug and release builds at the same time when you do this. It should add

[PyQt] Error: The input line is too long when compiling latest snapshot under WinXP

2009-04-04 Thread dcassidy36
I am not sure how to work around this one: The input line is too long. mingw32-make[1]: *** [QtGui.pyd] Error 255 mingw32-make[1]: Leaving directory `C:/PyQt-20090403/QtGui' mingw32-make: *** [all] Error 2 The latest snapshot I could build was from 2009331, and looking at the make files, it