Re: [PyQt] Detecting GUI changes

2009-07-31 Thread eliben
Saúl Ibarra wrote: Hi and thanks for your answer! I'm using QLineEdit boxes and load text from an SQLite DB so AFAIK I can't use qseltablemodel... Any other ideas? Every Qt widget has some sort of data updated signal you can catch. You can always compare the new value the widget has

[PyQt] A list of checkboxes

2009-05-12 Thread eliben
Hello, I want to display a QListView where each item is a checkbox with some label. The checkboxes should be visible at all times. One way I can think of is using a custom delegate and QAbstractListModel. Are there simpler ways? Can you provide the simplest snippet that does this? Thanks in

Re: [PyQt] A list of checkboxes

2009-05-12 Thread eliben
David Boddie wrote: On Tue May 12 19:20:14 BST 2009, eliben wrote: I want to display a QListView where each item is a checkbox with some label. The checkboxes should be visible at all times. One way I can think of is using a custom delegate and QAbstractListModel. Are there simpler ways

Re: [PyQt] Qt scripting framework

2009-02-13 Thread eliben
Frédéric Mantegazza-2 wrote: Is there an advantage using the Qt scripting framework in PyQt, as it should be possible to use python as scripting feature? Is there some example code to show how one could allow users to script some parts of an application? Thanks, -- Frédéric

Re: Re: [PyQt] MatplotLib and PyQt

2009-02-08 Thread eliben
projetmbc wrote: Hello, I'm looking for examples of little PyQt applications embending MatplotLib. Here is a good example: http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_q t4.html. The matplotlib mailing list is probably a better place to follow up if you have

Re: [PyQt] Windows/OS X installers for PyQt4 apps

2009-02-07 Thread eliben
stan-54 wrote: At least for windows, code developed in Gentoo/Ubuntu/Python-2.5/ Qt/PyQt4 is very efficiently converted to self contained .exe's with pyinstaller and seems a little faster executing (smaller loading time) than py2exe. While I've also found both pyinstaller and

[PyQt] Slow loading times of PyQt .exe with Pyinstaller

2009-02-04 Thread eliben
Hello, I've compiled a relatively simple GUI application with PyQt into an .exe with Pyinstaller. The loading time of this .exe is very long (7-8 seconds). When I compile it with py2exe instead (which seems to work great except that one has to remember adding 'sip' as an explicit depenency),

[PyQt] Embedding matplotlib into PyQt

2009-01-19 Thread eliben
Hello, As part of my PyQt learning process, I've recoded my embedding matplotlib into wxPython demo (http://eli.thegreenplace.net/2008/08/01/matplotlib-with-wxpython-guis/) in PyQt. Here's the resulting code: http://paste.pocoo.org/show/100359/ The demo features: * Using the navigation

[PyQt] Threads with PyQt. Qt's or Python's?

2009-01-19 Thread eliben
I've seen various references to this issue before, but nothing to fully address it as I'd expect. Can you comment on the pros and cons of using QThread vs Python's threads with PyQt? I'll begin: on the surface, Python's threads make more sense because they're Qt independent and can be ported

[PyQt] An UI update event/signal to update the GUI on

2009-01-18 Thread eliben
Hello, I'm porting some code from wxPython to PyQt, and am unable to find the replacement for wx's wx.EVT_UI_UPDATE event. This event is sent to a frame/window whenever the UI has to be updated. In the handler of the event I can check my application's state and update the widgets accordingly

Re: [PyQt] An UI update event/signal to update the GUI on

2009-01-18 Thread eliben
David Boddie wrote: Can you give more information about your user interface? It would make it easier to recommend the best approach for you to take. Thanks for the explanation, I'll think about it. Regarding my application. It's just a bunch of buttons, combo boxes and checkboxes that

Re: [PyQt] An UI update event/signal to update the GUI on

2009-01-18 Thread eliben
David Boddie wrote: Dividing it into separate signals and slots per each widgets is kind-of kludgy in comparison, don't you think? It depends on what level you're managing the interactions between widgets and the complexity of the user interface. If, for example, simply checking or

Re: [PyQt] Preferred method to package PyQt-powered apps into .exes

2009-01-18 Thread eliben
Thorsten Kampe wrote: * eliben (Sat, 17 Jan 2009 06:55:58 -0800 (PST)) I'll want to package my applications into .exe files, on Windows. Which of the existing options in the Python exe-packaging world works best for PyQt? PyInstaller? Py2exe? Something else? You can try them all

Re: [PyQt] PyQtShell

2009-01-18 Thread eliben
Pierre Raybaut wrote: Hi all, I would like to share with you this little open-source project of mine, PyQtShell: http://pypi.python.org/pypi/PyQtShell/ http://code.google.com/p/pyqtshell/ I've just started it a few days ago and I worked on it only a couple of hours at home this

[PyQt] Preferred method to package PyQt-powered apps into .exes

2009-01-17 Thread eliben
Hello, I'll want to package my applications into .exe files, on Windows. Which of the existing options in the Python exe-packaging world works best for PyQt? PyInstaller? Py2exe? Something else? I'm concerned with reliability of packaging (wanting to distribute to PCs that have nothing