Re: [PyQt] QThread and asynchronous Qt events

2009-05-19 Thread Frédéric Mantegazza
> A Dimarts, 19 de maig de 2009, Frédéric Mantegazza va escriure: > > You shouldn't be calling GUI methods from other threads than the one with > the main loop (not even in Qt4 AFAIK). In Qt3 you can postEvents from the > thread to GUI's main loop. In Qt4 you can

[PyQt] QThread and asynchronous Qt events

2009-05-19 Thread Frédéric Mantegazza
on the other. But both machines are very close (same debian etch release ; only hardwares differ)... Any idea what could cause this? -- Frédéric ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo

[PyQt] Define/edit a path

2009-05-12 Thread Frédéric
4) toggle from line segments to spline curve for smooth path Could you point me on the correct way to implement this? I alread used QGraphicsView and so. Is it the best way to do, or are there better widgets? Thanks for your help, [1] http://www.papywizard.org -- Frédéric http

Re: [PyQt] Problem using pyQT4 together with py2exe

2009-05-11 Thread Frédéric
ed and displayed nor images by QT resource > filesany ideas? where's my mistake? You should put your icons in a resource file, compile it as a .py file, and import it as any other module. This way, there is no problem. -- Frédéric

Re: [PyQt] Catching exceptions everywhere

2009-05-07 Thread Frédéric Mantegazza
yQt callbacks, to add a try/except feature, and display something like your "report bug" dialog box. Does anybody already done such decorator? -- Frédéric ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] QThread, QMutex, windows vs linux

2009-04-14 Thread Frédéric Mantegazza
t; windows about QThread and QMutex? Is it better to use a QMutexLocker > instead of a QMutex? I don't think so, as the try/finally statement > ensure that the unlock() method is always called... No idea? Nobody sees big mistakes in my code whic

[PyQt] QThread, QMutex, windows vs linux

2009-04-12 Thread Frédéric
r to use a QMutexLocker instead of a QMutex? I don't think so, as the try/finally statement ensure that the unlock() method is always called... -- Frédéric http://www.gbiloba.org ___ PyQt mailing listPyQt@riverbankcom

Re: [PyQt] Dead lock detected

2009-03-29 Thread Frédéric
On mercredi 25 mars 2009, Frédéric wrote: > When executing my program, I have the following error: > > Qt: Dead lock detected while activating a BlockingQueuedConnection: > Sender is PyQtProxy(0x2d12c20), receiver is PyQtProxy(0x2d14cb0) > > and the program freezes. What ca

[PyQt] Dead lock detected

2009-03-25 Thread Frédéric
, -- Frédéric ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Red Flag Midinux port

2009-03-19 Thread Frédéric
maemo: http://www.linuxdevices.com/news/NS8166710404.html I found some links on a french forum where some guys installed Gimp, gqview and so... -- Frédéric http://www.gbiloba.org ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomp

[PyQt] Red Flag Midinux port

2009-03-19 Thread Frédéric
r the new MID devices, like [1], which are running Red Flag Midinux distro. The question is: is there a port of PyQt for this plateform? Or is it planned? Thanks, [1]http://benq.com/products/MobileInternetDevice/?product=1402&page=specifications -- Frédéric http://www.gb

Fwd: Re: [PyQt] default to list?

2009-03-12 Thread Frédéric
copy in such case, which is a good thing, but is there a way to configure it so I receive the message to the list, and not the private one? PyQT is not the only list in this case; I think this is a mailman issue... -- Frédéric ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] QSettings usage

2009-03-09 Thread Frédéric
Le 9/3/2009, "Phil Thompson" a écrit: >>>>> settings.setValue("Dummy", 4) >> TypeError: argument 2 of QSettings.setValue() has an invalid type > >At the moment you always have to explicitly create QVariants - t

[PyQt] QSettings usage

2009-03-09 Thread Frédéric
an invalid type Thanks, -- Frédéric ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Configuration dialog

2009-03-05 Thread Frédéric
the papers I was taking about: http://doc.trolltech.com/qq/qq25-formlayout.html http://doc.trolltech.com/qq/qq13-attributes.html -- Frédéric ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Configuration dialog

2009-03-05 Thread Frédéric
hat I'm talking about... -- Frédéric ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Splash screen and WindowStaysOnTopHint flag

2009-03-04 Thread Frédéric
Le 4/3/2009, "Phil Thompson" a écrit: >The QtCore module is always loaded. If you import the QtGui module the >first thing it does (after importing the sip module) is to import the >QtCore module. Ok. So there is no problem using the flag. Than

[PyQt] Splash screen and WindowStaysOnTopHint flag

2009-03-04 Thread Frédéric
to load on Nokia. So, the splashscreen loose some interest... How can I avoid this problem? It should be nice to have this flag in a small module... Thanks, -- Frédéric ___ PyQt mailing listPyQt@riverbankcomputing.com http

Re: [PyQt] QMovie not loading gif from resource after py2exe

2009-02-21 Thread Frédéric
id you check that the resources.py is correctly loaded by the setup.py py2exe file? > Also, how do you guys ship your .ui files? See my config: http://trac.gbiloba.org/papywizard/browser/trunk/windows -- Frédéric http://www.gbiloba.org

Re: [PyQt] Any Large PyQt Projects?

2009-02-19 Thread Frédéric
re a lot of C-based libraries for computation which are very fast (numpy and co). I've also read that some libs are looking at GPU for fast signal processing... -- Frédéric http://www.gbiloba.org ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Tools for compiling sip/PyQt on MacOS

2009-02-18 Thread Frédéric
On mercredi 18 février 2009, William Kyngesburye wrote: > ah, my brain skipped over the 'install tools to' part. Thanks for all these tips :o) -- Frédéric http://www.gbiloba.org ___ PyQt mailing listPyQt@riverbankcompu

Re: [PyQt] Tools for compiling sip/PyQt on MacOS

2009-02-18 Thread Frédéric
have to guide them step by step :o/ Thanks for your help, -- Frédéric http://www.gbiloba.org ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Tools for compiling sip/PyQt on MacOS

2009-02-18 Thread Frédéric
Hello, How MacOS users (Mac/MacBook) can download and install tools to build sip/PyQt packages (make, gcc/g++ and so)? Thanks, PS: I'm not a MacOS developer myself, but some users of my software would like to install it on their Mac/MacBook... -- Frédéric http://www.gbilob

[PyQt] i18n default paths

2009-02-14 Thread Frédéric
ation files? Do you let them as .qm files? Where do you put them, and how do you retreive them from your code? Or do you compile them as resources, in a python module? I tried this, but PyQt fails to load them... Any advice welcome. -- Frédéric http://www.gbilob

Re: [PyQt] i18n & combo box

2009-02-14 Thread Frédéric
On vendredi 13 février 2009, Frédéric wrote: > I have a little issue with i18n and combobox. I have a config dialog > with some combobox, to allow the user to choose some pre-defined values. > For example, the possible entries of one of my combobox are: > > up >

[PyQt] Download linguist alone

2009-02-14 Thread Frédéric
Hi, Is there a way to download linguist alone, for translator guys? I didn't find neither on Qt nor PyQt web sites... Thanks, -- Frédéric http://www.gbiloba.org ___ PyQt mailing listPyQt@riverbankcomputing.com

Re: [PyQt] Qt scripting framework

2009-02-13 Thread Frédéric
examples directory. > There in script/ is a smallish example of JS scripting using the > scripting framework, so you may use it to get started. Thanks for your feedback. -- Frédéric http://www.gbiloba.org ___ PyQt mailing list

Re: [PyQt] i18n & combo box

2009-02-13 Thread Frédéric
original ones, not translated ones. Is there a way to have the same behaviour under PyQt? Thanks, PS: I don't want the translated strings stored in the config. file, because it will lead to problems if the user change the locale, or if they ask for some help. -- Fré

Re: [PyQt] PocketPC port of PyQT4

2009-02-12 Thread Frédéric
ng that whoever does it has access to all the right tools. Ok, so, what are the needed tools? -- Frédéric http://www.gbiloba.org ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] i18n

2009-02-12 Thread Frédéric
On jeudi 12 février 2009, Frédéric wrote: > I found the issue: I loaded i18n stuff *after* creating the main > window... It has to be done before. > > But now, even if the main window is correctly translated all dialogs > opened from there are not translated :o( Any idea for th

Re: [PyQt] Splash screen

2009-02-12 Thread Frédéric
rks fine for me. Is you splash image valid? -- Frédéric http://www.gbiloba.org ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] PocketPC port of PyQT4

2009-02-12 Thread Frédéric
On jeudi 12 février 2009, David Boddie wrote: > One place to start looking for information about Python on mobile > devices is this page: > > http://www.awaretek.com/pymo.html Thanks for the link. -- Frédéric http://www.gbiloba.org

Re: [PyQt] Splash screen

2009-02-12 Thread Frédéric
On jeudi 12 février 2009, Phil Thompson wrote: > On Thu, 12 Feb 2009 16:34:57 +0100, Frédéric > > > Users asked me to show a little splash screen, to show that the > > application is alive during startup. > > > > How do I implement this? Is there some example code

[PyQt] Qt scripting framework

2009-02-12 Thread Frédéric
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

[PyQt] Splash screen

2009-02-12 Thread Frédéric
application is alive during startup. How do I implement this? Is there some example code arround? Thanks, -- Frédéric ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] i18n

2009-02-12 Thread Frédéric
Le 12/2/2009, "Frédéric" a écrit: > But my app is not translated :o( What Am I doing wrong? I found the issue: I loaded i18n stuff *after* creating the main window... It has to be done before. But now, even if the main window is correctly translated all dialogs opened from

Re: [PyQt] i18n

2009-02-12 Thread Frédéric
Le 12/2/2009, "Frédéric" a écrit: >I think I will switch to tr() method (and translate() one if needed), as >I don't want to hack pylupdate4... Ok, I made all modifications, translated the ts file, generated the qm file, and loaded the translator using this

Re: [PyQt] Looking for docs of packing PyQt4 app with py2exe

2009-02-12 Thread Frédéric
/resources.html in the 'External Binary Resources' chapter. I may use this solution, over the python module one, as it will allow to select an icon theme, for example (but there are maybe better solutions). -- Frédéric

Re: [PyQt] i18n

2009-02-12 Thread Frédéric
Le 11/2/2009, "Frédéric" a écrit: >Does anybody could point me on example how to use i18n in PyQt? > >Riverbank documentation says that one should not use tr() method, but >instead QtCore.QCoreApplication.translate(). As the object must be >passed to this meth

Re: [PyQt] Looking for docs of packing PyQt4 app with py2exe

2009-02-12 Thread Frédéric
Le 12/2/2009, "Frédéric" a écrit: >> I am aware of [1] but I am not clear on how treats resources like >> images. I currently have them in the simplest/laziest form -- images >> are directly on the filesystem and linked to from within Qt Designer. >> So I was

Re: [PyQt] Looking for docs of packing PyQt4 app with py2exe

2009-02-11 Thread Frédéric
ule, so it will be automatically included in the py2exe build process... -- Frédéric http://www.gbiloba.org ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] i18n

2009-02-11 Thread Frédéric
nslate(text, comment=''): > """Mark text for translation without actually doing the >translation""" > return text > > __builtin__._ = translate > __builtin__.N_ = markNoTranslate Thanks! What is the purpose of the

[PyQt] i18n

2009-02-11 Thread Frédéric
, to bind the _() method I use with gettext and PyGTK? Something to help me migrate my code without having to modify it everywhere... Are there also some tools to migrate a .po file to a Qt i18n stuff? Thanks, -- Frédéric ___ PyQt mailing list

Re: [PyQt] PocketPC port of PyQT4

2009-02-10 Thread Frédéric
e it a try. But I need help to start ;o) -- Frédéric ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] PocketPC port of PyQT4

2009-02-09 Thread Frédéric
On jeudi 29 janvier 2009, Frédéric wrote: > Is there a port of PyQt4 for PocketPC ? Nobody is using PyQt on WindowsCE? -- Frédéric http://www.gbiloba.org ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.

Re: [PyQt] Discard events

2009-02-09 Thread Frédéric
led, for >example). Yes, you are probably right... -- Frédéric ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Discard events

2009-02-09 Thread Frédéric
tive. This work fine, but all input events are queued, and executed as soon as we leave the callback. If the user clicks on different widgets, all actions will be executed :o( -- Frédéric ___ PyQt mailing listPyQt@riverbankcomputing.com http://w

Re: [PyQt] QtCore.QtConcurrent

2009-02-09 Thread Frédéric
Le 9/2/2009, "Phil Thompson" a écrit: >> I'm trying to use QtConcurrent module, but I can't find it in the >> QtCore module... Am I missing something? > >It's difficult, if not impossible, to wrap and isn't much use because of >

[PyQt] QtCore.QtConcurrent

2009-02-09 Thread Frédéric
Hello, I'm trying to use QtConcurrent module, but I can't find it in the QtCore module... Am I missing something? -- Frédéric ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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

2009-02-07 Thread Frédéric
n you can package a Windows .exe from a linux system? -- Frédéric http://www.gbiloba.org ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] QGraphicsScene/Item/View optimisation

2009-02-06 Thread Frédéric
I'll have a look at this tool. -- Frédéric http://www.gbiloba.org ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] QGraphicsScene/Item/View optimisation

2009-02-06 Thread Frédéric
e it (I just draw rectangles or ellipses, so I used the related items). And it is now very fast. Thanks you all. -- Frédéric ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] QGraphicsScene/Item/View optimisation

2009-02-06 Thread Frédéric
tml/qgraphicsview.html#OptimizationFlag-enum I tried these flags, but they didnt change anything :o( I attached a short example to show my problem. As soon as the crosshair starts to move, the CPU goes to 100%! Any idea to improve that code? -- Frédéric # -*- coding: utf-8 -*- import sys import t

[PyQt] boundingRegion()

2009-02-06 Thread Frédéric
e its coordinates in the scen by calling: crosshair.setPos(yaw, pitch) I would like to keep it as simple. -- Frédéric ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] set qlineedit red, easy??

2009-02-05 Thread Frédéric
eet? css = """QLineEdit { background-color: red; }""" myWidget. setStyleSheet(css) I didn't test... http://doc.trolltech.com/4.4/stylesheet.html#overview http://doc.trolltech.com/4.4/qwidget.html#styleSheet-prop http://doc.trolltech.com/4.4/sty

[PyQt] QGraphicsScene/Item/View optimisation

2009-02-04 Thread Frédéric
some optimisation tips I should know? Or is there a big issue in my design? The code is here: http://trac.gbiloba.org/papywizard/browser/trunk/papywizard/view/shootingScene.py http://trac.gbiloba.org/papywizard/browser/trunk/papywizard/view/pictureItem.py Thanks, -- Frédéric

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

2009-02-03 Thread Frédéric
> thread will wait until the receiving thread has found time to process > all the slots. Ok (Qt is really powerfull!). > Notice that it's easy to deadlock, if you don't pay enough attention (and > even if you do ;). Why do you say it is easy to deadlock? Do you mean t

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

2009-02-03 Thread Frédéric
or does it wait until the event has really called the slot? -- Frédéric ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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

2009-02-03 Thread Frédéric
Le 3/2/2009, "Giovanni Bajo" a écrit: >> PS: does it already exist a simple solution to adapt this code: >> >> thread = threading.Thread(target=func) >> thread.start() >> >> using QThread? > >Yes: QtConcurrent::run

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

2009-02-03 Thread Frédéric
#x27;ll try to implement this... Thanks again for your help :o) PS: does it already exist a simple solution to adapt this code: thread = threading.Thread(target=func) thread.start() using QThread? -- Frédéric ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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

2009-02-03 Thread Frédéric
mage, QPrinter and QPicture, but not on QWidget and QPixmap (it seems that painting on QGraphicsItem works fine, as I don't have warnings; can you confirm?). So, how can I refresh my progressbar from my thread? Is there a Qt mecanism I could use? I'm not that familiar wi

Re: [PyQt] Two base classed inherit QWidget

2009-02-02 Thread Frédéric
def __init__(self, ) Qt2.__init__(self, ...) a = A(B(...), ...) I didn't make test yet; do you think it is a useable solution? -- Frédéric ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] PocketPC port of PyQT4

2009-01-29 Thread Frédéric
Hi, Is there a port of PyQt4 for PocketPC ? Thanks, -- Frédéric http://www.gbiloba.org ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] QGraphicsScene/Item/View coordinates

2009-01-27 Thread Frédéric
On dimanche 25 janvier 2009, Frédéric wrote: > When I create all items representing the pictures, I use the following > code: > > def paint(self, painter, options, widget): >     ... >     painter.fillRect(x, y, w, h, QtGui.QColor("green")) >     painter

Re: [PyQt] QGraphicsScene/Item/View coordinates

2009-01-25 Thread Frédéric
On vendredi 23 janvier 2009, Frédéric wrote: > I'm sure there is a simple way to avoid all computations I had to do > with PyGTK, but I'm not yet familiar with this framework. Ok, I finally have something working :o) There is still something I would like to do, but I didn&#x

[PyQt] QGraphicsScene/Item/View coordinates

2009-01-23 Thread Frédéric
I do that? Is it the purpose of the fitInView() method? Thanks, -- Frédéric http://www.gbiloba.org ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Graphic view

2009-01-21 Thread Frédéric
Le 18/1/2009, "Nahuel Defossé" a écrit: >El Saturday 17 January 2009 20:37:15 Frédéric escribió: > >> I would like to implement this like Mark explains for tables, in its >> paper, "Qt 4's Model/View Delegates". As I'm new to Qt4, could you poin

Re: [PyQt] Preview skins for Designer

2009-01-19 Thread Frédéric
ended 4.4.2: > > http://qtextended.org/modules/mydownloads/viewcat.php?cid=8 > > It's quite a large archive to download just for those, but I don't know > of any other package that contains them. The size is not a problem... Thanks :o)

[PyQt] Dialog behaves as a window

2009-01-19 Thread Frédéric
th Qt/PyQT. Is it possible? How? Thanks, -- Frédéric http://www.gbiloba.org ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Catching key events Re: [PyQt] Catching key events

2009-01-19 Thread Frédéric
> tell you if the press is due to autorepeat or a genuine new keyclick. Got it! It works fine. Thanks :o) -- Frédéric http://www.gbiloba.org ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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

2009-01-19 Thread Frédéric
On lundi 19 janvier 2009, Giovanni Bajo wrote: > On 1/19/2009 5:37 PM, Frédéric wrote: > > I use python threads, but I have a serializer to push all Qt calls on > > a queue, and this queue is processed from the main thread, using a > > QTimer timeout signal. > > Thi

Re: [PyQt] Preview skins for Designer

2009-01-19 Thread Frédéric
yone design something for Nokia N800/N810 internet tablets? -- Frédéric http://www.gbiloba.org ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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

2009-01-19 Thread Frédéric
t any issues... As X11 is not thread-safe, you should get some X11 errors, leading to crashs. I use python threads, but I have a serializer to push all Qt calls on a queue, and this queue is processed from the main thread, using a QTimer timeout signal. But all this

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

2009-01-19 Thread Frédéric
Le 19/1/2009, "Christoph Burgmer" a écrit: >I am doing a >QCoreApplication.postEvent() >out of "run()" from a "threading.Thread" class without any problems. Under which plateform? -- Frédéric ___ PyQt mail

Re: [PyQt] Catching key events

2009-01-19 Thread Frédéric
ress event when the key is pressed, and the release one when it is released. I didn't find yet a way to do that. At which level this feature is implemented, so I can try to change it? Should I go down to the event() callback? -- Frédéric ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Catching key events

2009-01-18 Thread Frédéric
On lundi 19 janvier 2009, David Boddie wrote: > Call the event's ignore() method before returning. > > "You should call ignore() if the key press or release event is not > handled by your widget." Thanks! -- Frédéric

Re: [PyQt] Catching key events

2009-01-18 Thread Frédéric
On samedi 17 janvier 2009, Frédéric wrote: > I still have an issue: when I hold down a key, once the repeat starts, I > receive both KeyPressed and KeyReleased events. This is a different > behaviour as PyGTK, where I only received the key-pressed-event while > holding it down,

Re: [PyQt] Re: PyQtShell

2009-01-18 Thread Frédéric
ad.net/~ipython-dev/ipython/ipython-extensions/file >s/head:/ipy_qt/ Thanks you. Looks very interesting... -- Frédéric http://www.gbiloba.org ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Graphic view

2009-01-18 Thread Frédéric
tem is hit by the mouse, you might want to call to update() after. Thanks again, Nahuel! I'll have a look at your code... -- Frédéric http://www.gbiloba.org ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputin

Re: [PyQt] Icons and Qt resources

2009-01-18 Thread Frédéric
ted svg files throw some debug info (like > gradients not understood) when Qt loads them. Ok, thanks for the tip. -- Frédéric http://www.gbiloba.org ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Re: PyQtShell

2009-01-18 Thread Frédéric
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) -- Frédéric http://www.gbiloba.org ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Graphic view

2009-01-17 Thread Frédéric
vailable (QGraphicsScene/View/item...). Are there some example, somewhere? Thanks, -- Frédéric http://www.gbiloba.org ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Catching key events

2009-01-17 Thread Frédéric
I forgot to ask: once I have checked all the key events, in keyPressedEvent, how do I let propagate the event I don't want to handle ? -- Frédéric http://www.gbiloba.org ___ PyQt mailing listPyQt@riverbankcomputing.com

Re: [PyQt] Catching key events

2009-01-17 Thread Frédéric
On vendredi 16 janvier 2009, Frédéric wrote: > 1) catching key events > > I found that I have to implement the keyPressEvent() method. I did this > in the mainWindow, but the behaviour depend where is the focus. And as I > want to catch arrow keys, it also change the focus! Wha

Re: [PyQt] Icon in status bar

2009-01-17 Thread Frédéric
gt; That's the defacto standard to show images as widgets in Qt. Ok, thanks, I'll try that. -- Frédéric http://www.gbiloba.org ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Icon in status bar

2009-01-17 Thread Frédéric
I would like to add some state icons, in the status bar, but adding a QIcon does not work: argument 1 of QStatusBar.addPermanentWidget() has an invalid type How can I do that? What widget should I use? -- Frédéric http://www.gbiloba.org

Re: [PyQt] GUI thread check

2009-01-17 Thread Frédéric
it before launching the Qt main loop: threading.currentThread().setName("QtMainThread") -- Frédéric http://www.gbiloba.org ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] GUI thread check

2009-01-16 Thread Frédéric
On vendredi 16 janvier 2009, Zac Burns wrote: > Can I check to see if the current thread is the safe 'main' GUI thread? Yes, using threading.currentThread().getName() The main thread is called 'MainThread'. -- Frédéric

[PyQt] Catching events

2009-01-16 Thread Frédéric
also want to rebind key TAB, to avoid changing the focus, space, and enter... 2) catching the close window event (when clicking in the little x, in the up-right corner) What is, and how to catch, this event? Thanks, -- Frédéric http://www.gbilob

Re: [PyQt] Re: Re: Deploying from Linux to Windows

2009-01-16 Thread Frédéric
om GUI. Maybe the same problem, here. -- Frédéric http://www.gbiloba.org ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Log viewer

2009-01-16 Thread Frédéric
ook (I'm about to receive it), with python examples? I enjoy very much such patterns, and I will certainly comme back to you (through the list) for more advices (I'm looking for a generic plugins framework)... Thank you again for you help. -- Frédéric

Re: [PyQt] Log viewer

2009-01-16 Thread Frédéric
s used in the log dialog: http://trac.gbiloba.org/papywizard/browser/branches/1.x/papywizard/controller/loggerController.py just by attaching it, with the Textview.set_buffer() method... -- Frédéric ___ PyQt mailing listPyQt@riv

[PyQt] Log viewer

2009-01-16 Thread Frédéric
ment class, which sems to be the same as gtk textBuffer, but it does not have a appendText or appendHtml methods, nor a way to limit the number of entries. Any idea how I can do that? -- Frédéric ___ PyQt mailing listPyQt@riverbankcomputin

Re: [PyQt] Preview skins for Designer

2009-01-16 Thread Frédéric
ook in the tools/qvfb directory in the Qt source distribution, but >you might need the X11 source package to get access to individual skins. Ok, I downloaded them. Where should I put them so Designer automatically shows them in the ComboBox? -- Frédéric

[PyQt] Icons and Qt resources

2009-01-16 Thread Frédéric
for you help, -- Frédéric ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Preview skins for Designer

2009-01-15 Thread Frédéric
s is >described on the following page: > > http://doc.trolltech.com/4.4/qvfb.html Thanks :o) -- Frédéric ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Preview skins for Designer

2009-01-15 Thread Frédéric
for small devices, like smartphones, internet tablets an so)? Thanks, -- Frédéric ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Force the ratio of a widget

2009-01-14 Thread Frédéric
m the height? I didn't find any methods, which is strange from Qt... -- Frédéric ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Force the ratio of a widget

2009-01-14 Thread Frédéric
Le 14/1/2009, "Doug Bell" a écrit: >Calling resize inside a resizeEvent is not a good idea. You should let >the layout do the work. > >Try overriding QLayoutItem.hasHeightForWidth() and >QLayoutItem.heightForWidth(w) in a custom layout. T

[PyQt] Force the ratio of a widget

2009-01-14 Thread Frédéric
half the way; the frame remains square, but its parent (the layout) does not resize, so I can't see the entire frame. In fact, the layout remains at the minimum width of the frame. Any idea to correct this? thanks, -- Frédéric ___ PyQt mailing

  1   2   >