> 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
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
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
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
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
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
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
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
,
--
Frédéric
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
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
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
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
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
an invalid type
Thanks,
--
Frédéric
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
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
hat I'm talking about...
--
Frédéric
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
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
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
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 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
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
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
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
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
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
>
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
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
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é
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
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
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
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
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
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
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
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
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
/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
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
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
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
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
, 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
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
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.
led, for
>example).
Yes, you are probably right...
--
Frédéric
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
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
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
>
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
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
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
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
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
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
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
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
> 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
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
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
#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
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
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
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
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
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
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
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
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)
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
> 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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
for you help,
--
Frédéric
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
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
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
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
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
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
100 matches
Mail list logo