Re: [PyQt] designer segfaults on startup after installing libpythonplugin.so and custom widget
On Monday 04 February 2008, Glen W. Mabey wrote: On Mon, Feb 04, 2008 at 01:00:25PM -0600, Phil Thompson wrote: Does it crash when you start Designer, or when you create your widget? When I start designer. Does the plugin.py example work? Nope. I run /usr/local/bin/python2.5 plugins.py from the examples/designer/plugins directory which first pops up that info window and then launches designer, but I neither see the PyQt Examples group nor anything new in the toolbox. Help - About Plugins says that it couldn't find any. Any at all, or any of the PyQt examples? Obviously the problem is with the PyQt build itself, rather than your particular plugin. Did you do anything non-standard? Might there be a problem with multiple versions of things? Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] PyKDE4 question
* Jim Bublitz [Sun, 03 Feb 2008 09:52:40 -0800]: Hello Jim. I'm still working on my release (upgrading tools and documentation generation) Is this release intended to replace the current code in KDE's SVN? If so, is it somewhere public? If it's somewhat useable already, I wouldn't mind testing to see if it works fine for me, and/or solves the problems I reported with the current code [1 and 2]. [1]: KConfig crash: http://www.riverbankcomputing.com/pipermail/pyqt/2008-January/018232.html [2]: Text now showing up in menus with Oxygen: http://www.riverbankcomputing.com/pipermail/pyqt/2008-January/018164.html Thanks for your work, -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org Listening to: Mecano - Un año más ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Event loop is already running warning message
Hello, A while back I inquired about some warning messages that appear in a threaded application at each timeout, which was addressed in a subsequent PyQt4 release: http://thread.gmane.org/gmane.comp.python.pyqt-pykde/9800/focus=9803 A similar problem occurs with QCoreApplication, it can be seen by starting ipython: $ ipython --q4thread cpaste QCoreApplication::exec: The event loop is already running QCoreApplication::exec: The event loop is already running ... That warning is also produced at each timeout. Is it possible to silence this message? Thank you, Darren -- Darren S. Dale, Ph.D. Staff Scientist Cornell High Energy Synchrotron Source Cornell University 275 Wilson Lab Rt. 366 Pine Tree Road Ithaca, NY 14853 [EMAIL PROTECTED] office: (607) 255-3819 fax: (607) 255-9001 http://www.chess.cornell.edu ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] designer segfaults on startup after installing libpythonplugin.so and custom widget
On Tue, Feb 05, 2008 at 09:22:37AM -0600, Glen W. Mabey wrote: On Tue, Feb 05, 2008 at 02:01:50AM -0600, Phil Thompson wrote: On Monday 04 February 2008, Glen W. Mabey wrote: Nope. I run /usr/local/bin/python2.5 plugins.py from the examples/designer/plugins directory which first pops up that info window and then launches designer, but I neither see the PyQt Examples group nor anything new in the toolbox. Help - About Plugins says that it couldn't find any. Any at all, or any of the PyQt examples? None at all. Which should have raised a flag for me because I didn't see any of the Qt3 support items which enter as plugins, if I understand it correctly. Obviously the problem is with the PyQt build itself, rather than your particular plugin. Did you do anything non-standard? Actually, yes. I spent most of the day yesterday working to get things better situated and more correctly installed. The installation scheme I'm using is to install each package so that all its files reside in /usr/local/stow/Python-2.5.1 /usr/local/stow/qt4-4.3.3 /usr/local/stow/sip-4.7.3-py2.5 /usr/local/stow/pyqt4-4.3.3-py2.5 /usr/local/stow/qscintilla2-2.1 and then running the 'stow' utility to create symlinks from /usr/local/bin/ into (for example) /usr/local/stow/qt4-4.3.3/bin/ thus placing executables and libraries into standard system directories. So, with just Python, qt4, and sip in a stowed state, when I launch designer it shows the Qt3 support items in the toolbox. As soon as I stow pyqt4, those Qt3 support items no longer appear. Just a sampling of the contents of those directories: /usr/local/stow/qt4-4.3.3/plugins/designer/libcustomwidgetplugin.so /usr/local/stow/qt4-4.3.3/plugins/designer/libcustomwidgetplugin.so.debug /usr/local/stow/qt4-4.3.3/plugins/designer/libpythonplugin.so /usr/local/stow/qt4-4.3.3/plugins/designer/libqt3supportwidgets.so /usr/local/stow/qt4-4.3.3/plugins/designer/libqt3supportwidgets.so.debug /usr/local/stow/qt4-4.3.3/plugins/designer/libtaskmenuextension.so /usr/local/stow/pyqt4-4.3.3-py2.5/plugins/designer/libpythonplugin.so /usr/local/stow/pyqt4-4.3.3-py2.5/plugins/designer/python/ /usr/local/stow/qscintilla2-2.1/plugins/designer/libqscintillaplugin.so Thus, when each package gets stowed, appropriate symlinks are found in /usr/local/plugins/designer/ So, it seems to me that the compile options and install layout that I have chosen cause libpythonplugin.so to make the whole designer plugin system to bomb. Glen ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] designer segfaults on startup after installing libpythonplugin.so and custom widget
On Tue, Feb 05, 2008 at 02:01:50AM -0600, Phil Thompson wrote: On Monday 04 February 2008, Glen W. Mabey wrote: Nope. I run /usr/local/bin/python2.5 plugins.py from the examples/designer/plugins directory which first pops up that info window and then launches designer, but I neither see the PyQt Examples group nor anything new in the toolbox. Help - About Plugins says that it couldn't find any. Any at all, or any of the PyQt examples? None at all. Which should have raised a flag for me because I didn't see any of the Qt3 support items which enter as plugins, if I understand it correctly. Obviously the problem is with the PyQt build itself, rather than your particular plugin. Did you do anything non-standard? Actually, yes. I spent most of the day yesterday working to get things better situated and more correctly installed. Might there be a problem with multiple versions of things? I don't think that there's multiple versions but I will rule that out and post again hopefully to say that it's all fixed. Thank you, Glen ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] PyKDE4 question
On Tuesday 05 February 2008 01:41, Adeodato Simó wrote: * Jim Bublitz [Sun, 03 Feb 2008 09:52:40 -0800]: Hello Jim. I'm still working on my release (upgrading tools and documentation generation) Is this release intended to replace the current code in KDE's SVN? If so, is it somewhere public? If it's somewhat useable already, I wouldn't mind testing to see if it works fine for me, and/or solves the problems I reported with the current code [1 and 2]. Eventually Simon (who maintains the SVN code) and I will probably sync our versions. The way this is developed is that I write code to generate PyKDE, so for example what I'm finishing up now is some small details about scoping arguments (sip requires more explicit scoping than C++) and generating %ConvertToSubClassCode (which handles class promotion, somewhat like casting). There also needs to be some code to generate documentation. Those affect all modules, so there really isn't any pre-release or alpha version - PyKDE either exists or it doesn't. Once all that's complete, I need to find any bugs releated to sip generation, compilation or linking and the same generally applies there - it either works or it doesn't (for example, a single undefined symbol - which occurs fairly often on new releases - will prevent a module from loading). Once that's all done, I'll have a release - probably in a month or a little longer. At that point, Simon can look at whether he wants to switch to the new code generation tool (which is both faster and more accurate - less manual fixup needed), and we can sync versions. There are some changes from the betas I looked at to the KDE 4.0.0 release in terms of KConfig related code, so that may be where that problem lies. Menu stuff I'd have to look at - I have done some code with older (pre-release) KDE versions and haven't noticed any problems there, but will check it out when I have stable/complete code. Jim [1]: KConfig crash: http://www.riverbankcomputing.com/pipermail/pyqt/2008-January/018232.html [2]: Text now showing up in menus with Oxygen: http://www.riverbankcomputing.com/pipermail/pyqt/2008-January/018164.html Thanks for your work, ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] A couple of question about PyKDE4
Hi all, Debian's KDE team has started to package KDE 4.0 quite some time ago, and they have asked me if I had plans to package PyKDE 4.0. Before I start out with PyKDE4, I have a couple of questions: - what is the preferred build system? cmake or configure.py? Will any of these build system vanish in the future? - are there going to be separate releases of PyKDE4, or will everything be coordinated with the KDE releases? - is there any high-level documentation about krosspython? Forgive my ignorance, but I've never come across it. (I'd *guess* that it's for embedding PyKDE4 scripts as components in KDE programs) thanks for your help, Torsten -- Torsten Marek [EMAIL PROTECTED] ID: A244C858 -- FP: 1902 0002 5DFC 856B F146 894C 7CC5 451E A244 C858 Keyserver: subkeys.pgp.net signature.asc Description: Dies ist ein digital signierter Nachrichtenteil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] A couple of question about PyKDE4
On Tuesday 05 February 2008 11:49, Torsten Marek wrote: Hi all, Debian's KDE team has started to package KDE 4.0 quite some time ago, and they have asked me if I had plans to package PyKDE 4.0. Before I start out with PyKDE4, I have a couple of questions: - what is the preferred build system? cmake or configure.py? Will any of these build system vanish in the future? - are there going to be separate releases of PyKDE4, or will everything be coordinated with the KDE releases? - is there any high-level documentation about krosspython? Forgive my ignorance, but I've never come across it. (I'd *guess* that it's for embedding PyKDE4 scripts as components in KDE programs) Hi Torsten - On Tuesday 15 January 2008 08:40, you wrote: Hi Jim, Debian's KDE team has started to package KDE 4.0 quite some time ago, and they have asked me if I had plans to package PyKDE 4.0. It's been quite some time since I've done serious work with PyQt and PyKDE, my packages are in maintenance mode mostly. I'd actually like PyKDE4 to be an opportunity to get a good look at KDE 4.0 and probably do some GUI programming again. Before I start out with PyKDE4, I have a couple of questions: - what is the preferred build system? cmake or configure.py? Will any of these build system vanish in the future? I haven't looked lately, but I think Simon is using cmake with the KDE SVN version. I'll be continuing to use configure.py. I'm pretty sure Simon will want to go with/stay with cmake, and that I'll stay with the configure.py setup. The latter depends on sip support, so if Phil changes that, I'll have to change my setup/install stuff, but it's likely I'll stay with some kind of Python scripting. Of course nothing lasts forever, but I don't see anything that would change my mind in the near future. - are you going to make separate releases of PyKDE4, or will everything be coordinated with the KDE releases? I'll probably do separate releases - I'm behind again and won't be releasing for a month or two. What Simon has put in KDE SVN should be current and reasonably complete, and will likely stay that way. We're a little out of sync at the moment because he's still using the original PyKDE tools (presip + scripts) to develop PyKDE. My holdup is largely finishing a new toolset for PyKDE based on Ply (Python Lex-Yacc) rather than a handwritten parser. There's also a better set of documentation and a documentation viewer (pykdedocs) that integrates tutorials, example programs, docs and will let you browse other docs (Python, PyQt, Qt, KDE, etc) locally or online. I don't know if Simon has included that yet. The viewer software is all PyKDE4 based, so I have had a chance to test out a lot of the GUI and KParts/KHTML related stuff, and it was working very nicely. The Ply-based tools will make it a lot easier to develop docs from the KDE doc set and is a much easier to maintain bunch of code. The only thing missing in PyKDE4 is Phonon support, which is a little messy (or was last time I looked). - is there any high-level documentation about krosspython? Forgive my ignorance, but I've never come across it. (I'd *guess* that it's for embedding PyKDE4 scripts as components in KDE programs) Kross is for embedding Python scripts in KDE apps - that could use PyKDE (I think), but isn't dependent on it or sip. I think Sebastian Kugler ([EMAIL PROTECTED]) is the lead developer - we've exchanged a few messages (email or at dotKDE - don't recall which), but there isn't any connection between Kross and PyKDE. I haven't seen any Kross docs, but haven't looked in a while (that's about the third or fourth time I've said something like that - I am a little behind on most of this). Jim ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Wacom tablet support
Hello: I'm a little new to python and pyqt so please forgive any naive questions I might have :) But, what I am attempting to do is simply have my wacom tablet work similarly to my mouse in a pyqt application. It appears that left clicks, right clicks and tapping on the tablet all work fine, but when I try to drag, nothing happens. I've tried selecting multiple things in a treeview, using scrollbars, highlighting text, but it seems to only register the first tap and not mimic holding down the left mousebutton and then dragging. Here are some tech specs: Linux Kernel: 2.6.15-1.02 Python 2.4 Qt-4.3.1 Pyqt 4.3 The tablet seems to work fine in other applications (gimp/Shake/firefox) Would anyone have any help they can give me that might be obviously overlooked? Is there any special initialization I need to do? I can see tabletDown/tabletMove events being triggered so something is at least happening. Thanks in advance! B ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] A couple of question about PyKDE4
On 05.02.08 12:13:28, Jim Bublitz wrote: On Tuesday 05 February 2008 11:49, Torsten Marek wrote: - is there any high-level documentation about krosspython? Forgive my ignorance, but I've never come across it. (I'd *guess* that it's for embedding PyKDE4 scripts as components in KDE programs) Kross is for embedding Python scripts in KDE apps - that could use PyKDE (I think), but isn't dependent on it or sip. I think Sebastian Kugler ([EMAIL PROTECTED]) is the lead developer - we've exchanged a few messages (email or at dotKDE - don't recall which), but there isn't any connection between Kross and PyKDE. Its actually Sebastian Sauer and there are some Kross tutorials on http://techbase.kde.org/index.php?title=Development/Tutorials#Kross. Also the kate devs have a looked a bit into Kross lately and written some sample code: http://lists.kde.org/?t=12002331483r=1w=2 Andreas -- You're definitely on their list. The question to ask next is what list it is. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] eric3 and designer-qt4
Hi there, i'm trying eric3 with designer-qt4. I develop some dialog with designer, and compile it from eric3, but i can't subclass it. The option is grayed, why ? Thank you ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Qcompleter,dateEdit popup questions.
Hello,everybody! I'm new to PyQt and in process of converting my application from wxPython to PyQt. I'd like to ask couple of question about nice QCompleter class in Qt and PyQt. Question #1: How can I build my own custom completer which completes on any char in the item word? It seems that default Qcompleter completes only if my items starts with letters that I've started typing. For example: here is my abstract model data: Item10 Item110 Item20 Item220 If I type for example 'm10' then completer should provide only 2 matches Item10 Item110 because 'm10' chars is found only in this two items. I've read documentation about QCompleter in Qt docs but can not find a clue about methods used by Qcompleter when deciding which item from model is matched to my typed word. I think I should inherit from QCompleter something like this: class MyCompleter(QCompleter): def __init__(self, parent=None): super(MyCompleter, self).__init__(parent) self.model = MyCompletionModel() self.setModel(self.model) self.setCompletionColumn(0) Now the question is : which method should I override in order to intercept QCompleter decision about which item from model is fit for currently entered text? Is there something like this? : def complete_decison_method(self,item): prefix = self.completionPrefix() # Get typed text which shoud be completed or matched. if str(item).find(prefix) == -1 : # no - this item don't match entered text, don't show it in popup return False else # yes! this item matches somewhere with prefix - it's valid to complete! return True Can someone provide hint or url maybe? I've read http://doc.trolltech.com/4.2/qcompleter.html but don't find enough info to answer my question. Question #2: I have a dateEdit widget with calendarPopup = true. When calendar chooser is shown in popup - week is started from Sunday. Can I have a dateEdit widget with popup where week is started from Monday? My locale is correct I think, so in calendar popup I am seen russian letters, so problem is not in locale setup I think. My platform: Python 2.5, PyQt 4.3.3 GPL , winXP. --- [EMAIL PROTECTED] ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt