[PyQt] Wrapping "const char * const *" in sip
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, ///< Service name for the protocol. int cmdCount, ///< Number of command strings. const char * const * cmdNames///< Strings for each command. ); // Create an unopened TCP/IP protocol socket channel. }; -- Regards, -Demetrius Cassidy ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Limit the height of a Layout
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 wrote: = Hello, I'm a newby and I have a question: how can I limit the height of a QHBoxLayout? e.g.: There is a central widget with a QHBoxLayout that as two QTableWidget and I want to limit the size of the first QTableWidget to 300 points, but let the second QTableWidget grow until the limit of the screen. Thank you in advance for your help. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] how to open a gui module?
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 shoulden't use the Qt C++ SIGNAL/SLOT implementation as it's not very Pythonic and can lead to some hard to find errors. Try something like this instead: self.calenderWidget.selectionChanged.connect(self.Plans) -- Regards, -Demetrius Cassidy p...@patx.me wrote: = reply to addr: pat...@gmail.com On Tue, Mar 2, 2010 at 4:44 PM, wrote: > Yea, http://patx.me/paste/28462914.html and > http://patx.me/paste/2160335.html > > so i need to use paste # 28462914 to open paste # 2160335 > > thanks :) > > > On Tue, Mar 2, 2010 at 4:36 PM, wrote: > >> 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 following: >> >>self.connect(self.pb1, QtCore.SIGNAL('clicked()'), >>self.open_foo) >> >> So self.pb1 would be a PushButton and self.open_foo would be the function >> that would open foo.py. >> >> >> How would I do this? >> >> -- >> patx, patx.me >> >> ___ >> PyQt mailing listPyQt@riverbankcomputing.com >> http://www.riverbankcomputing.com/mailman/listinfo/pyqt >> > > > > -- > patx, python gui and web, http://patx.me, amateur skier and football > player > -- patx, python gui and web, http://patx.me, amateur skier and football player ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] how to open a gui module?
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 following: self.connect(self.pb1, QtCore.SIGNAL('clicked()'), self.open_foo) So self.pb1 would be a PushButton and self.open_foo would be the function that would open foo.py. How would I do this? -- patx, patx.me ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] signals and dialogs
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 emitSignal()... theString: signal: this is foo -- Regards, -Demetrius Cassidy Scott Frankel wrote: = Hi all, How does one connect dialogs to a parent object to receive any signals they may emit? This doesn't work: dialog = Foo() self.connect(dialog, QtCore.SIGNAL("foo(string)"), self.printString) The attached code sample creates a dialog that emits a signal on init(). The main window tries to connect the dialog, receive the signal, and call its assigned slot. Seems like it should work, but of course it doesn't. I'm sure I'm overlooking something simple. Thanks in advance! Scott ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] configure.py does not add qpy release folder to Makefile when compiling w/debug symbols
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 "/LIBPATH:C:\PyQt-win-gpl-4.7\qpy\QtCore\release" along with '\debug' to the Makefiles, for QtCore, QtGui any everything else that depends on qpy or the linker complains that it can't find the non-debug versions of the above libs. -- Regards, -Demetrius Cassidy ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Error: "The input line is too long" when compiling latest snapshot under WinXP
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 seems to stem from these two lines in the QtGui makefile: "CPPFLAGS = -DNDEBUG -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I"C:\PyQt-20090403\qpy\QtGui" -IC:\Python26\include -Ic:/Qt/2009.01/qt\mkspecs\default -Ic:/Qt/2009.01/qt/include\QtGui -Ic:/Qt/2009.01/qt/include\QtCore -Ic:/Qt/2009.01/qt/include LIBS = -L"C:\PyQt-20090403\qpy\QtGui\release" -LC:\Python26\libs -Lc:/Qt/2009.01/qt/lib -lqpygui -lpython26 -lQtGui4 -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lws2_32 -lole32 -luuid -luser32 -ladvapi32 -lQtCore4 -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws2_32" It looks like adding -lqpygui and the path to it seems to cause the command prompt to hit the max character limit. Can anyone tell me if there is a workaround for building PyQt4.5 on windows? ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt