Re: [PyQt] newbie questions...
On Thu, Aug 14, 2008 at 3:59 PM, Phil Thompson p...@riverbankcomputing.com wrote: On Tue, 12 Aug 2008 20:31:37 +0100, Chris Withers ch...@simplistix.co.uk wrote: Phil Thompson wrote: That seems weird to put it politely. I would have thought they both had the same interfaces? It's not a technical limitation. It is to prevent people developing a commercial product with the GPL version and then switching to the commercial version at the last minute. The PyQt commercial license has the same restriction. In reality we would be open to discussion (usually involving backdating the purchase of the commercial licenses). Heh, I'd *love* to see this one come to court ;-) Seriously, I'm all for licensing that sees companies rewarded for their hard work, but I'd be seriously interested in how this would be argued in court... Thankfully all the stuff I'm developing is open source, so I don't have that problem :-) Anyway, some questions: - where do I get the Qt Designer from? It's part of Qt. Is this Qt for Java or Qt for C++? Which one do I install? Certainly Qt for C++, probably both. - how come PyQt4 isn't on PyPI? (Nowadays I'm used to just specifying packages as egg requirements in a buildout.cfg (http://buildout.zope.org/) but I guess I can't do that with PyQt4?) PyPI is a PIA to use when you are not using eggs. Okay, let me rephrase: how come PyQt4 isn't available as an egg? (for the record, I hate eggs, but the python community has adopted them, so I'm just attempting to put up and shut up. zc.buildout does offer some analgesic for the agony) It's never seemed important. I distribute a GPL package that depends on PyQt4 and PyMca, and the latter depends on PyQwt. PyQwt has had a hard time keeping abreast of recent changes in sip/PyQt4. This causes problems for my users when, for example, ubuntu upgrades their version of sip/PyQt4 and breaks pyqwt in their own package manager. It might be useful if packages like sip/PyQt and PyQwt used the standard python distribution utilities. For example, if distutils were used to create source distributions and installers that were then posted at PyPI, it would be possible to use pip/easy_install to install the whole stack with a single command. The utilities in Distribute/setuptools/PEP-390 could be used to specify version requirements. I could specify that my package depends on =pyqwt-5.2.0, pyqwt-5.2.0 would specify its own dependencies, and so on. My understanding is that multiversion support with eggs would help prevent version incompatibilities, but I don't have practical experience. I'm also not sure that distutils is up to the job of building PyQt. Yes, that could undermine the whole approach. Darren ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] newbie questions...
David Boddie wrote: http://www.riverbankcomputing.com/software/sip/intro IS there no way to package up an application such that you don't need to seperately install python, pyqt4 and then the app? In theory: http://www.diotavelli.net/PyQtWiki/Deploying_PyQt_Applications Cool, thanks for these. I assume I'll see you at PyConUK? (http://www.pyconuk.org/) cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] newbie questions...
On 16.08.08 23:45:51, Chris Withers wrote: Andreas Pakulat wrote: Get it from your distribution under linux or use the ready-made installer from Phil for windows. I don't know what the state on MacOSX is. In worst case you're fetching sip+pyqt4 what's sip? Its the tool needed to build pyqt4 from sources because it generates the actual C code for the bindings from so-called .sip files which describe the API of the classes in C++ library and how they should be mapped into python. - How do I package an app up that uses PyQt4 as a double-click-installer for non-technical users? Same as the first thing above: They should use the PyQt4 installer from Phil or distro packages and then just execute your python script. IS there no way to package up an application such that you don't need to seperately install python, pyqt4 and then the app? Well, you can create a NSIS installer for windows, I've got no idea how distribution works on MacOSX. Others have already pointed out py2exe, but I see from time to time mails here that people have problems with py2exe in some cases. In general distributing apps for a platform that doesn't have a packaging system is a PITA if you have dependencies. (I'm not saying a packaging system like linux distro's use is the ultimate answer, there are problems with that sometimes too - versioning, integrating with the packaging system) Andreas -- Think twice before speaking, but don't say think think click click. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] newbie questions...
On Sat Aug 16 23:45:51 BST 2008, Chris Withers wrote: Andreas Pakulat wrote: Get it from your distribution under linux or use the ready-made installer from Phil for windows. I don't know what the state on MacOSX is. In worst case you're fetching sip+pyqt4 what's sip? http://www.riverbankcomputing.com/software/sip/intro IS there no way to package up an application such that you don't need to seperately install python, pyqt4 and then the app? In theory: http://www.diotavelli.net/PyQtWiki/Deploying_PyQt_Applications Feel free to get an account on the Wiki and update the page with your experiences. David ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] newbie questions...
On 12.08.08 20:31:37, Chris Withers wrote: Phil Thompson wrote: Anyway, some questions: - where do I get the Qt Designer from? It's part of Qt. Is this Qt for Java or Qt for C++? Which one do I install? AFAIK both, but for PyQt4 you'd have Qt/C++ installed already anyway, right? So you can just use that one. Qt Designer doesn't care about the language that you use for the actual code, it just produces a .ui file anyway. Andreas -- Beware of a tall blond man with one black shoe. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] newbie questions...
Hey All, Apologies for the newbie questions, I'm still trying to decide what gui toolkit I want to use and so would like to give Qt4 a go. Everything I do is in python, so that leads me to PyQt4 ;-) I'm currently doing entirely open soruce development on Windows. However, I wouldn't like to rule out developing some commercial apps later. What's the licensing position on this? This, from the Trolltech website was more than a little weird: The Commercial License does not allow you to incorporate code developed with the Open Source Editions of Trolltech software into a proprietary project That seems weird to put it politely. I would have thought they both had the same interfaces? Anyway, some questions: - where do I get the Qt Designer from? - how come PyQt4 isn't on PyPI? (Nowadays I'm used to just specifying packages as egg requirements in a buildout.cfg (http://buildout.zope.org/) but I guess I can't do that with PyQt4?) thanks for any help! Chris :-) -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] newbie questions...
On Fri, 08 Aug 2008 10:16:53 +0100, Chris Withers [EMAIL PROTECTED] wrote: Hey All, Apologies for the newbie questions, I'm still trying to decide what gui toolkit I want to use and so would like to give Qt4 a go. Everything I do is in python, so that leads me to PyQt4 ;-) I'm currently doing entirely open soruce development on Windows. However, I wouldn't like to rule out developing some commercial apps later. What's the licensing position on this? This, from the Trolltech website was more than a little weird: The Commercial License does not allow you to incorporate code developed with the Open Source Editions of Trolltech software into a proprietary project That seems weird to put it politely. I would have thought they both had the same interfaces? It's not a technical limitation. It is to prevent people developing a commercial product with the GPL version and then switching to the commercial version at the last minute. The PyQt commercial license has the same restriction. In reality we would be open to discussion (usually involving backdating the purchase of the commercial licenses). Anyway, some questions: - where do I get the Qt Designer from? It's part of Qt. - how come PyQt4 isn't on PyPI? (Nowadays I'm used to just specifying packages as egg requirements in a buildout.cfg (http://buildout.zope.org/) but I guess I can't do that with PyQt4?) PyPI is a PIA to use when you are not using eggs. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] newbie questions...
On 08.08.08 10:16:53, Chris Withers wrote: Hey All, Apologies for the newbie questions, I'm still trying to decide what gui toolkit I want to use and so would like to give Qt4 a go. Everything I do is in python, so that leads me to PyQt4 ;-) I'm currently doing entirely open soruce development on Windows. However, I wouldn't like to rule out developing some commercial apps later. What's the licensing position on this? This, from the Trolltech website was more than a little weird: The Commercial License does not allow you to incorporate code developed with the Open Source Editions of Trolltech software into a proprietary project That seems weird to put it politely. I would have thought they both had the same interfaces? Its not a technical, but a legal limitation. That is you're not allowed to make money off any code you've developed with the open-source version of Qt (or PyQt for that matter). Anyway, some questions: - where do I get the Qt Designer from? From Qt: www.trolltech.com - how come PyQt4 isn't on PyPI? (Nowadays I'm used to just specifying packages as egg requirements in a buildout.cfg (http://buildout.zope.org/) but I guess I can't do that with PyQt4?) Because so far there's little interest in that I think, plus PyQt4 doesn't use distutils/setuptools and hence one would need to change the buildsystem first probably. Andreas -- Try to relax and enjoy the crisis. -- Ashleigh Brilliant ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Newbie questions: Tray system and other stuff...
HI David and all!! I am trying to embed a xterm console inside my application, but with no success. I made some test embedding (example in another script) mplayer for testing only and works. Now when i want to embed xterm console does not work. Here what i did: I have a developing style which in a main script (MainApp.py), i plug all together the Ui classes (generated with pyuic4 from .ui designer files/GUIs) and then in others script, i write every module/code function of my app: Xterm Embedding: The core fuction of embedding xterm is here: http://opencoffee.lnxteam.org/trac/browser/trunk/opencoffee-server/core/console.py Then i call it from the MainApp here: http://opencoffee.lnxteam.org/trac/browser/trunk/opencoffee-server/MainApp.py(in line 273) which i insert it inside a frame of a Widget (And thet Widget goes inside a stackedWidget). If anyone could guide me here, will be lot of help. Thanks. -- Gustavo A. Díaz GDNet Projects www.gdnet.com.ar ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Newbie questions: Tray system and other stuff...
On Saturday 14 July 2007 02:37:26 -0300, Gustavo A. Díaz wrote: I am new on this list, and new in the progamming world. Welcome to both of these places! I've started to develop an app. (OpenCoffee, http://opencoffee.lnxteam.org) using PyQT. I am newbie, but i am doing my homework and reading a lot about python and pyqt, which i did by now a lot of progress on my app ;);) My questions: Is there around an example of how to implement tray system? I just need basics: a MainWindow docked in tray system when i press or do X action (example, pressing exit in actionMenu or closing the mainWindow, etc.). I've read the class QSystemTrayIcon but still i have many doubs of how to implement it. A system tray icon is a lot like a widget. Create an instance of it, give it an icon by creating a QIcon using a QPixmap and calling setIcon(), set up some signals and slots connections, then show it. If you are comfortable reading C++, the System Tray example documentation should give you some hints about using the QSystemTrayIcon class: http://doc.trolltech.com/4.3/desktop-systray.html My other doub over this week development, if is possible to dock a bash console (or like it) inside my PyQt app? I didn't find any examples yet or documentation about it. I just awnt to dock a bash condole kind inside a QStackedWidget. You could embed a console application's window in a container widget on X11 using the QX11EmbedContainer widget: http://doc.trolltech.com/4.3/qx11embedcontainer.html Alternatively, it may be possible to use pyqonsole to do what you want, as long as all the licenses involved are compatible and you can make it work with the version of PyQt you are using: http://www.logilab.org/project/eid/2571 David ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt