Re: [PyQt] pyqtSlot, getting "undefined" return values when called from qml javascript
On Sun, Apr 29, 2012 at 5:47 PM, Phil Thompson wrote: >> I have tried passing return value in the decorator (return=int...). >> >> Any clues where to look? > > Have you got a complete test that demonstrates the problem? Now I do, but when I went about to create that minimal example it started working ;-). So, thanks and sorry about the noise. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] pyqtSlot, getting "undefined" return values when called from qml javascript
On Sat, Apr 28, 2012 at 1:10 AM, Andrew Suffield wrote: >> I have a qml file invoking methods on a QObject subclass. I have used >> @pyqtSlot decorator to expose the methods as slots. >> >> I can see that the methods are run; however, the return values seem to >> be discarded. > > Qt slots don't return anything... On PySide, they do: http://www.pyside.org/docs/pyside/PySide/QtCore/Slot.html Also, the pyQtSlot decorator has "return" argument to specify return value type: http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/new_style_signals_slots.html#PyQt4.QtCore.pyqtSlot ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] pyqtSlot, getting "undefined" return values when called from qml javascript
I have a qml file invoking methods on a QObject subclass. I have used @pyqtSlot decorator to expose the methods as slots. I can see that the methods are run; however, the return values seem to be discarded. Code for the QObject subclass (that I expose with setContextProperty) is like this: === from PyQt4 import QtCore from PyQt4.QtCore import QObject,pyqtSlot class NodeWrapper(QObject): def __init__(self, c,v): QObject.__init__(self) self.c = c self.v = v @pyqtSlot() def get_b(self): return 2 #return self.v.b @pyqtSlot() def get_h(self): return self.v.h @pyqtSlot() def children(self): #self.all = all = [NodeWrapper(self.c, chi) for chi in self.v.children] all = "hello" print "Will ret",all return all === I have tried passing return value in the decorator (return=int...). Any clues where to look? pyqt version is 4.9.1-2ubuntu1, on Ubuntu precise pangolin. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] ImportError: DLL load failed: The specified procedure could not be found.
Lately at Leo project ( http://www.youtube.com/watch?v=Zu6J-J0qFi0 ), we have many people complaining about pyqt ImportError in Windows. It's solved by copying around the dll's or doing this: http://stackoverflow.com/questions/2738879/cannot-import-pyqt4-qtgui (not being on windows, can't verify right now) Is this some kind of recent regression with pyqt windows installer? -- Ville M. Vainio @@ Forum Nokia ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Python wrappers for QML/ "Qt Quick"?
On Tue, Mar 9, 2010 at 9:19 PM, Giovanni Bajo wrote: > For a C++ object to be exported to QML, on the other hand, you need an > additional set of meta-definitions which are currently unavailable from What are these meta-definitions? I thought QObjects were directly exposed through signals, slots and properties? -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Python wrappers for QML/ "Qt Quick"?
On Tue, Mar 9, 2010 at 8:57 PM, Attila Csipa wrote: > If I understand correctly what you want to do, it has little to do with PyQt, > it would be more of a PyQML custom binding... Which is interesting, but sounds Right - it would be a "lighter" solution, if it would indeed be as thin as I'm thinking should be possible. Clearly it wouldn't have all the power PyQt solution would have. > like quite a niche to me - it will be hard to avoid Qt parts, and at that > point it's much easier to go via the 'main' PyQt path. But, I'm no QML expert Yeah, the PyQt path will be easier and more flexible. The "custom qml wrapping" would be more akin to "occams razor" solution to the problem, with as little of the middleman present as possible. -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Python wrappers for QML/ "Qt Quick"?
On Tue, Mar 9, 2010 at 2:07 PM, Giovanni Bajo wrote: > It might make more sense to have a way to export PyQt classes to QML, that > is implement QMLElement in Python rather than in C++, and make them > available to QML itself. This is pretty much what I'm thinking of. Python would take the part of C++ here, not Javascript. -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Python wrappers for QML/ "Qt Quick"?
On Mon, Mar 8, 2010 at 4:50 PM, Attila Csipa wrote: > Note that QML itself will be part of mainline Qt4.7, so I guess it's just a > question of time (read: Phil's schedule :) until a bit more 'official' > support for QML + PyQt appears. There is a bit more to think about than just wrapping Qml* classes; there are multiple interesting paths for creating QML + Python apps. For one, it should be possible to avoid loading the PyQt libs altogether (in the interest of smaller footprint & faster launch) - just create a C++ application like qmlviewer, and embed python interpreter to that. All the Qt facing code would be on the javascript side, and the javascript code would be able to access the embedded python interpreter through some exposed stubs. In the first phase, even being able to exec/eval strings would get you started. -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Python wrappers for QML/ "Qt Quick"?
Anyone considered implementing a bridge for accessing python from QtScript in QML? In the same way you use the C++ stuff from QtScript currently, i.e. through QObjects exposed to the scripting engine? Will this be the revolutionary new way of doing flashy, "modern" GUIs for python applications? :-) http://labs.trolltech.com/blogs/2009/05/13/qt-declarative-ui/ http://labs.trolltech.com/blogs/2010/01/27/upcoming-qtcreator-support-for-qml-or-what-is-bauhaus/ -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Is there a way to run the interp AND a gui?
On Thu, Mar 4, 2010 at 10:29 AM, "V. Armando Solé" wrote: > When you start ipython as "ipython -q4thread" you have what you seem to be > looking for. Perhaps it is worth to take That feature of ipython is deprecated, even with ipython you should just use the normal inputhook hack. -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Is there a way to run the interp AND a gui?
On Thu, Mar 4, 2010 at 4:51 AM, Jason H wrote: > Undoubtedly, that would work for showing the widget. And yes, I've done that > much. Unless something has changed recently, I eventually have to call > app.exec_(), which would block until last window has closed... You shouldn't need to call app.exec_, the readline input hook is spinning the qt event loop already (google around for PyOS_InputHook). -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Memory Release question
On Wed, Feb 3, 2010 at 7:08 PM, Darryl Wallace wrote: > If I take the MDI example and start that program, it's using 11,060K of ram. > Creating a new document in the MDI (by clicking the "new" button on the > toolbar brings the ram usage up to 11,376K. Upon closing the document, ram > usage went down to 11,372K. After a minute or so it went down to 11,340K. > Why doesn't it go back to closer to 11,060? > I would guess that when the QTextEdit object was destroyed, that the memory > it used would be returned. > Can anyone provide some info? The application heap is not typically returned to OS directly when objects are freed. Rather, the freed space will be used by other objects allocated by the application. -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] ANN: PyQt v4.7 Windows Installers
On Thu, Jan 21, 2010 at 1:41 PM, Phil Thompson wrote: > - MinGW is used rather than MSVC - so everything is much bigger. I guess there is an upside for this? ;-) -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Using rich text in QTextBrowser
On Sun, Dec 27, 2009 at 12:44 PM, Star Glider wrote: > Is there any way to convert rtf to HTML? Just google "rtf to html", plenty of hits. -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] License for embedded PyQt in Qt C++ app
On Fri, Dec 18, 2009 at 6:26 PM, Oliver Heyme wrote: > Now we where looking into the subject of having an embedded scripting > language in the Qt C++ app and Python + PyQt + sip would be perfect. > > Now we are not sure about the license. If you think the users may want to distiribute their scripts with closed license, you could investigate using Javascript (QtScript) instead. -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] question about QMenu `triggered' event
On Fri, May 29, 2009 at 3:13 PM, Tony Willis wrote: > According to the Qt QMenu documentation, a QMenu should be capable > of generating its own 'triggered' event when any action that > has been added to the menu generates such an event. However, while > I can successfully connect 'triggered' events from individual actions > in a menu to separate callbacks, I can't seem to get a QMenu > to produce a global 'triggered' event. The appended script > illustrates the problem. Can someone tell me what I'm doing wrong? Did you try hooking on triggered(QAction) of the QMenuBar also? -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] problem with css...
On Tue, Dec 15, 2009 at 8:05 AM, Jebagnana Das wrote: > Hi all, > > In the below program the style sheet properties isn't working even > after it's set. Can you please where i went wrong Perhaps your css needs to be more specific reg. subcontrols. See http://doc.trolltech.com/4.3/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Crash in sip_api_is_py_method() with PyQt 4.6
On Sun, Oct 18, 2009 at 8:01 PM, Ville M. Vainio wrote: > On Wed, Oct 14, 2009 at 10:55 PM, Ville M. Vainio wrote: > >>> Try also tonight snapshot, Phil wrote that the bug will be fixed. >> >> I'm seeing several reports of this same crash, so at least it appears >> to be systematic. Great that the fix is out. > > I can confirm that this crash is now fixed by Karmic packages. A bit of a blast from the past, but... I apt-get upgraded my Debian Sid installation to the latest status, but this crash still occurs. An interim solution (until debian updates python-sip4) is to download and install the package from Karmic: http://packages.ubuntu.com/fi/karmic/python-sip4 For reference, this crash is reported e.g. here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=552511 -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Question related to tabbed widgets...
On Thu, Dec 3, 2009 at 8:33 PM, Jebagnana Das wrote: > 1) Is it possible for us to create tabbed windows by having > images as tab headers.. If u r not getting the point it's like add/remove > programs in windows or tools->preferences in vlc(latest) player... I know > there is QTabwidget tool.. But through this we can set only icons for tabs > not like the windows like the above mentioned two... I looked at what vlc 1.0.2 has. That preferences menu is not a tab widget at all. Luckily, vlc is using qt4. Grab the source and check out simple_preferences.cpp. You'll note that it's using a set of QToolButton objects to implement the category switcher (#define ADD_CATEGORY...) -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] 256 record limit with QOdbc working with MS Access
On Thu, Nov 5, 2009 at 8:41 PM, Scott Price wrote: > Anyone have any idea why the query only returns 256 records? Any ideas on > where I can even start looking for the cause? Is this an Access limitation > or a PyQt limitation? Your test case seems short enough to translate to C++ Qt with reasonable effort - it might be worth the shot. Certainly it's more likely a Qt / Access problem than a PyQt one. -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] googlemap api
On Wed, Nov 4, 2009 at 9:14 PM, Ahmet Erdinc YILMAZ wrote: > module . However I encounter some problems in the web. It is said that some > javascript calls may be problematic in this module. We have not started the You can verify Qt Webkit functionality easily by testing a site functionality with the Arora browser. -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Crash in sip_api_is_py_method() with PyQt 4.6
On Wed, Oct 14, 2009 at 10:55 PM, Ville M. Vainio wrote: >> Try also tonight snapshot, Phil wrote that the bug will be fixed. > > I'm seeing several reports of this same crash, so at least it appears > to be systematic. Great that the fix is out. I can confirm that this crash is now fixed by Karmic packages. -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Segfaulting in PyQt-4.6
On Sat, Oct 17, 2009 at 2:02 PM, wrote: > I have a bit of a problem. My application worked fine in ver-4.5.* but every > time I start it in 4.6 the app fails to start and all I see is > > "Segmentation fault (core dumped)" > > I've tried to debug the app in Eric IDE but all I get is > > "The program being debugged terminated unexpectedly" > > Has anything critical changed between 4.5 and 4.6? How do I go about debugging > my application? Some crashes appeared when 4.6 hit Karmic. You can debug your application by: gdb python (gdb) r myapp.py ... CRASH ... (gdb) bt -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Next Releases of PyQt and SIP
On Fri, Oct 16, 2009 at 11:10 AM, Phil Thompson wrote: > All outstanding bug reports against PyQt and SIP have been resolved - if > you disagree then let me know. So this one should be fixed now: https://bugs.launchpad.net/ubuntu/+source/python-qt4/+bug/452453 http://www.mail-archive.com/pyqt@riverbankcomputing.com/msg19157.html ? -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Crash in sip_api_is_py_method() with PyQt 4.6
On Wed, Oct 14, 2009 at 6:58 PM, Victor Stinner wrote: > Try also tonight snapshot, Phil wrote that the bug will be fixed. I'm seeing several reports of this same crash, so at least it appears to be systematic. Great that the fix is out. Incidentally, is anyone keeping a ppa for pyqt snapshots? -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Crash in sip_api_is_py_method() with PyQt 4.6
On Tue, Oct 13, 2009 at 10:25 PM, Victor Stinner wrote: > Hi, > > I'm using Debian Sid, and my program crash since the last upgrade. The last > upgrade installed PyQt 4.6 with SIP 4.9. May be unrelated, but I also suddenly started getting systematic crashes like this on latest Karmic: http://pastebin.ca/1619543 (yes, my -dbg packages are installed - dunny why all the symbols don't match) -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Newbie question regarding Qt Designer and PyQt
On Mon, Oct 5, 2009 at 1:39 AM, Donovan Parks wrote: > They are far too small. So small that the arrow of the spin boxes are > not even drawn properly. I have both my combo and spin boxes laid out > using a QFormLayout to the right of some QLabels. I can fix the 'small Your QFormLayout ends up with a very small size if it's not inside another layout. What layout is your QFormLayout contained in? When you say it's "right of some labels", what do you mean? The position you draw them at in Qt Designer is not enough to tell where/what size they will end up with, you always need layout objects to describe this. -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] New Feature - Keyword Arguments for Properties and Signals
Accidentally omitted list in CC, resending... On Mon, Sep 7, 2009 at 10:57 AM, Phil Thompson wrote: > For example, the following calls... > > act = QAction("Save", parent) > act.setShortcut(QKeySequence.Save) > act.setStatusTip("Save the document") > act.triggered.connect(self.save) > > ...can be replaced by... > > act = QAction("Save", parent, shortcut=QKeySequence.Save, > statusTip="Save the document", triggered=self.save) Very cool stuff! Now, can we have something that does the same thing outside constructor? E.g. act = menu.addAction('blah') act.configure(triggered=self.save, statusTip="Save the document") Also, is this a "safe" way to connect signals so that we get an exception on bad signal name (as in the new style signal api, and as opposed to the old c++ style signal binding)? -- Ville M. Vainio http://tinyurl.com/vainio -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] PySide: LGPL Qt binding
It seems there is a new Python binding for Qt around: http://www.pyside.org/ >From what I gather, it seems to use boost::python (?), and is still at Linux-only stage. -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] ipython, pdb and pyQT
On Mon, Jul 13, 2009 at 5:03 PM, TheLonelyStar wrote: > I am trying to debug a pyQt application from ipython using pdb. > I get lots of > > QCoreApplication::exec: The event loop is already running If you are on Linux, you may want to explore PuDB ( http://pypi.python.org/pypi/pudb ). It has the huge advantage of not using readline. Another thing to google for is pyqtRemoveInputHook. One thing to try is *not* doing QCoreApplication::exec (just remove exec_ from your program). readline spins the mainloop in itself (PyOS_InputHook), so your events get handled. -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] pyqt download confusion (website)
On Fri, Jun 26, 2009 at 2:10 PM, Scott Lyons wrote: > It's not like it's on a completely separate page. The section titled "Binary > Packages" is clearly visible when the page loads. Yet anecdotal evidence suggests that the thing people should be doing on that page (grabbing the installer) is not what they end up doing. It's easy to get the wrong idea that actually trying to build it from source yourself would be a sensible option. -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] pyqt download confusion (website)
This may be slightly off topic, but it seems this web page needs some rewriting: http://www.riverbankcomputing.co.uk/software/pyqt/download The problem is that newcomers that need PyQt way too often start building it on their own (even the non-naive users). Making the windows binary installer the first thing on the page would help (and most often it's the windows users who need this page in the first place) -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] PyQt Licensing
On Tue, May 5, 2009 at 7:47 PM, Phil Thompson wrote: > re-licensing of GPL code. In other words if you have a successful GPL > application and want to sell a commercial version then you can do - so long > as you buy commercial PyQt licenses before you start selling. To do this > you have to use the LGPL version of Qt as I think the commercial Qt license > still imposes the restriction. So what does this mean, in brief? Suppose that I have an app that has been developed by 3 developers in-house without buying the license (i.e. it has been effectively GPL, though not shipped), and it's decided that this application will be sold / shipped with non-open source license. Do I need to buy one commercial PyQt license, or 3? Does that license give you the right to ship as many instances of the program as you want? -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] CloudKnowledge 0.1 released
2009/3/31 Arnold Krille : > I know my mail is only half on-topic as I don't use PyQt in that project > (yet), but I am not subscribed to any other python mailing lists so I don't > know where to announce things like this best. Try comp.lang.python.announce -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] subprocess in PyQt
On Sat, Mar 14, 2009 at 9:17 AM, klia wrote: > i have a function that suppose to do something and from terminal it has this > syntax to be executed; > > was...@home:~/Desktop/Project2/GUI$ python myexif.py -q "pathfile" > > test.csv > > so far on using subprocess i came up with this; > > from subprocess import * > x=Popen(['python','myexif','-q','sys.argv[1]'], stdout=PIPE) > y=Popen(['>','Exif.csv'], stdin=x.stdout) the y=... line doesn't make much sense. Why not just do os.system('myexif.py -q "pathfile" > test.csv') and be done with it? If you don't care about your UI blocking for a second, it should be rather trouble-free... -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Pydee v0.3.0
On Wed, Mar 11, 2009 at 9:36 PM, Laurent Dufrechou wrote: > Hey pierre, > Wow that's fantastic! Indeed it is, at least judging by screenshots ;-). > > Wow I had seen your pyqtshell I was really impressed by all the surrounding > widgets. > Wow ;) > > Good job! :) Now that you are all excited Laurent, perhaps you (with your prev. experience) could take it for a small spin to see how we can shoehorn ipython into it ;-) It's good to see this progressing - I wrote my ipython qt shell in order to see how easily that stuff could be done (cut all corners, make sqintilla do the colorization, etc). This version clearly has more of the all-important polishing work done. -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Qt 4.5 out
http://dot.kde.org/2009/03/03/qt-software-releases-lgpled-qt-45-and-creator-10-provides-sdk The word around is that Qt 4.5 is much faster than 4.4. I guess it's safe to assume that our qt44 python apps will continue working with qt45, as soon as the builds are available? -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Any Large PyQt Projects?
On Fri, Feb 20, 2009 at 7:22 PM, Ville M. Vainio wrote: > Be sure to check out: > http://en.wikipedia.org/wiki/Multiprocessing Argh, I went too google-copy-paste happy. What I meant was: http://docs.python.org/library/multiprocessing.html -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Any Large PyQt Projects?
On Fri, Feb 20, 2009 at 12:33 AM, Brent Villalobos wrote: > computation? How does it handle multiple thread performance given python's > limitations on only running on one CPU (global interpreter lock)? I don't > need too much detail (obviously nothing proprietary), but I just want to > know if anyone has any "red flags" that people should be aware of before > writing a large python gui app with things like openGL contexts and heavy > mathematical computation? Be sure to check out: http://numpy.scipy.org/ http://www.cython.org/ http://en.wikipedia.org/wiki/Multiprocessing -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] LGPL license.
On Wed, Feb 11, 2009 at 5:38 PM, Phil Thompson wrote: > The selection of a language happens much earlier than the selection of a > GUI toolkit. A GUI toolkit is (or at least should be) a relatively minor Sometimes, the gui toolkit is selected for you. This may not be true for pc software, but my personal interest here lies in mobile device development, and Maemo / S60 platforms. Both are moving to have Qt as the primary native toolkit, and that's really what your program should use to "integrate natively" with the rest of the gui (read: it's most likely that you will be paid for a project that requires you to use Qt). Traditionally, the sdk's to both of these platforms have been free-as-in-beer-for-commercial-development, and that expectation may still remain - someone could with few hundred developers under him could make a "strategic" choice based on that alone. I'm not necessarily arguing that it's a good choice, but it's just something that may happen, given the basic human psychology (cheapskate knee-jerk reaction). This is lots of will/would/could, but that's because Qt is just "starting to happen" in my universe. Mostly in C++, but I think it would be nice if Python gained a strong foothold here as well. -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] LGPL license.
On Wed, Feb 11, 2009 at 3:30 PM, Giovanni Bajo wrote: > I doubt that any company on earth would save £350 and change programming > language. This kind of decision is made by amateur programmers that just > want to play around with Qt, but those can already use the GPL version. Not necessarily change, but it may effect the initial selection. I am not really interested in pursuing this discussion further (it has been done enough times already), but the licensing of Qt is the reason people/orgs chose other toolkits over Qt, despite technical inferiority. And everybody seems to be pretty enthusiastic about the license change, so it's not something to laugh off, really. Be it as it may, if ruby had a LGPL Qt and Python didn't, it would be real technical plus for ruby and minus for python (as opposed to other benefits claimed by the ruby community, which are typically fictious). If developing in Python costs you 350pounds / developer and ruby and c++ are free, many companies would definitely weigh this against python. -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] LGPL license.
On Tue, Feb 10, 2009 at 11:10 PM, Knapp wrote: > Comes down to if pyQT is LGPL then I write in my fav lang python, if > not then I go back and relearn C++ and face the brackets that I hoped > never to face again. :-) As said many times before, *nothing has been announced on this yet*. Even if PyQt wasn't released under LGPL, QtRuby people would never pass the opportunity to screw python by going LGPL (thus making ruby the "preferred" dynamic language for gui development). So I don't think you'd need to go for C++ in any case. -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] QThread, suggestions.
On Thu, Jan 29, 2009 at 5:34 PM, Matt Smith wrote: > It looks like I could just replace the QThread with a > multiprocess.Process except for the fact the QThread is a QObject which > uses signals and slots. > > If I want to use the same techniques I would have to start a Process in > a QThread to get similar behavior; a signal when finished. I suppose > the performance would be better if approached correctly. It might also be quite interesting to create a cross-process signal/slot system for multiprocessing & PyQt. It already has synchronization primitives, why not create an easy-to-use signal wrapper for it that works seamlessly with qt event loop? -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Re: PyQtShell
On Sun, Jan 18, 2009 at 7:47 PM, Frédéric wrote: > On the other hand, as we only run ipython inside, for our application, > something like PyQtShell should be enough. So I'll give it a try :o) It should be relatively easy to add ipython support. I have actually done it already for a "written-from-scratch" qt ui (currently using QScintilla - I tried using QTextEdit first, but it was way too slow for output-heavy operations like "find /"). The code has crap left from QTextEdit side, and it could use some refactoring, but it should be short enough to see how you can add IPython support to PyQtShell. Notably, it's "special" in that it uses 2 scintilla widgets (one for input, one for output - to make it easier to enter/edit multiline code). Get the code by: https://code.launchpad.net/~ipython-dev/ipython/ipython-extensions (look at / run qtipywidget.py). Or web browser: http://bazaar.launchpad.net/~ipython-dev/ipython/ipython-extensions/files/head:/ipy_qt/ -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Qt as LGPL !!1!
http://dot.kde.org/1231920504/ Best news ever. -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Introducing PyDingo
2008/12/18 piotr maliński : > For the next "release" the main feature will be adding basic file management > features to the file browser, context menus, main menu, and some other > smaller fixes and enchantments :) You may want to priorize keyboard handling as well. PgUp doesn't go to scintilla (PgDown does), and you can't move around the file manager with cursor keys (svn r35). -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] what widget do you recommend for running (vt100) terminal apps and...
On Thu, May 29, 2008 at 2:07 AM, Nenad Romic - Marcell <[EMAIL PROTECTED]> wrote: > * i use ipython for developing pyqt4 apps and i really like repl user > interface and checking in real time what's going on with my app... i > would like to run the same ipython session for running + controling my > app and i want the same ipython session to be one of the integral > widgets of my app... that's somehow bootstraping problem any idea on > how to do that? You can easily use IPython to control your app, BUT only if ipython is standing in the console. A wx UI for IPython has been implemented, and is bundled with IPython 0.8.3 (IPython/gui/wx directory). If you'd like to implement qt4 equivalent, you are welcome to help :-). -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] No feedback on failed signal connection
On Sat, May 24, 2008 at 2:32 PM, Ville M. Vainio <[EMAIL PROTECTED]> wrote: > after rewriting my app to use listwidget. My app uses qscintilla, so > I'll put back QListView back in there and see whether that causes > problems. Or possibly I just botched the signal signature. Yeah, I botched the signature. Everything works fine now :-) -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] No feedback on failed signal connection
On Sat, May 24, 2008 at 1:43 PM, Phil Thompson <[EMAIL PROTECTED]> wrote: >> To get back to the original problem, it seems I can't get any signal >> from QListView to work: clicked, doubleClicked, selectionChanged, you >> name it. I even tried connecting signals with qt designer, but those >> are not emitted either. > > So you need to post a small, complete example that's demonstrates the problem. In a rather embarrassing (and typical) twist of events, I managed to get the signals working while building my minimal example - obviously after rewriting my app to use listwidget. My app uses qscintilla, so I'll put back QListView back in there and see whether that causes problems. Or possibly I just botched the signal signature. Since you are implementing a new connection system, it would be pretty handy to be able to connect to signals just by name, foregoing signature altogether. Or, implement a "signal helper" function that gets a target object and signal name, and returns the full signature... -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] No feedback on failed signal connection
On Sat, May 24, 2008 at 12:47 PM, Phil Thompson <[EMAIL PROTECTED]> wrote: > If you specify a signal that it not a Qt signal then it is assumed that you > are using a Python signal. Python signals are created on the fly, and the > connect() will succeed. Fair enough. Is there a way to get some warning about this (esp when connecting directly to c++ classes), for the benefit of pyqt beginners? To get back to the original problem, it seems I can't get any signal from QListView to work: clicked, doubleClicked, selectionChanged, you name it. I even tried connecting signals with qt designer, but those are not emitted either. -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] No feedback on failed signal connection
I'm been flailing around, trying to get SOME signal out of QListView to no avail (QListWidget works ok) Here is example code that silently fails: print self.connect(self.listView, SIGNAL("foobar(QModelIndex *)"), self.var_selected ) print self.connect(self.textEdit, SIGNAL("xxxtextChanged()"), self.var_selected ) Both print True, and there are no error notifications on console. I'm using Ubuntu 8.04 LTS default pyqt4 packages (4.3.3-2ubuntu4) Also, is there a complete reference of all the values you can pass to SIGNAL (e.g. in source files)? It seems to be quite sensitive, e.g "foo*" is not same as "foo *". -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio' ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt