[PyQt] Eclipse sliding info panels

2009-04-19 Thread Scott Ballard
For those who haven't seen the sliding info panels in the Eclipses IDE they are great. They slide out over the main working area and collapse out of sight when you click back into the main working area. Makes it really convenient to get/edit data. They differ from splitting a Frame in two with

[PyQt] QItemDelegate + Hover

2009-04-19 Thread Mads Ipsen
Hi, I would like the editor of my ItemDelegate to be triggered when the mouse is hovered over the item. I've modified the 'spinboxdelegate.py' (example included below): * Reimplement the paint method of QItemDelegate * Call setAttribute(QtCore.Qt.WA_Hover) on the TableViews viewport() method and

Re: [PyQt] Regression in SIP sip-4.8-snapshot-20090409 wrt MappedTypes

2009-04-19 Thread Simon Edwards
Phil Thompson wrote: On Sun, 19 Apr 2009 21:39:29 +0200, Simon Edwards wrote: Phil Thompson wrote: sipForceConvertTo_*() (and related functions) are internal and should not be used by handwritten code. If it isn't documented then you can't use it. Thanks that helps a lot. Another question.

[PyQt] Emulate WIN-DOS Capture results live, How to achive?

2009-04-19 Thread akumarzen
Instead of os.popen or subprocess to execute SINGLE DOS COMMAND to capture back its output in python... Is there anyway I can capture the intermid results simultaneously that appears in DOS? Eg: import os x = os.popen('ping 127.0.0.1').read() print x This print the entire output of PING. But I w

Re: [PyQt] QDirModel populating QTreeView in Windows Slow Response

2009-04-19 Thread Scott Ballard
Could be that one of your drives has gone to sleep. It takes a couple of seconds for the drive to wake up and give a directory listing. Its not that slow on my machine. -Scott akumarzen wrote: I populate QTreeView with QDirModel ... While EXECUTING. It takes much time to generate the TREE

[PyQt] QDirModel populating QTreeView in Windows Slow Response

2009-04-19 Thread akumarzen
I populate QTreeView with QDirModel ... While EXECUTING. It takes much time to generate the TREE Structure... Is it true! QDirModel -> QTreeView takes much time? Say 5-6 Sec~! I m using XP in Intel Penti Dual CPU, 2ghz, 2gb RAM! -- View this message in context: http://www.nabble.com/QDirModel-p

Re: [PyQt] Re: tooltips in menu: how?

2009-04-19 Thread Wolfgang Rohdewald
On Sonntag, 19. April 2009, projetmbc wrote: > This is normal. When the menu is activated ther is no reason to give a > tooltip about it because we know wath is in. let me restate what I observed: if the tip click here... appears, the tips "tooltip 0" etc will never appear unless the program i

Re: [PyQt] Link between a QWebViev and a JavaScript program

2009-04-19 Thread David Boddie
On Sun Apr 19 20:51:49 BST 2009, projetmbc wrote: > Simon Edwards a écrit : > > projetmbc wrote: > >> I'm seeking for information about how to comunicate from PyQt with a > >> JavaScript program. > > > > QWebFrame's evaluateJavaScript() might be a start. > > Indeed I'm looking for a simple example

Re: [PyQt] Link between a QWebViev and a JavaScript program

2009-04-19 Thread Marcell Mars
the simplest example of loading jquery.js (geti it from http://jqueryjs.googlecode.com/files/jquery-1.3.2.js and put it in the same directory with the snippet below) after loading html and then using jquery syntax to change the background color into red: run it in python interactive shell or bette

Re: [PyQt] Regression in SIP sip-4.8-snapshot-20090409 wrt MappedTypes

2009-04-19 Thread Phil Thompson
On Sun, 19 Apr 2009 21:39:29 +0200, Simon Edwards wrote: > Hi, > > Phil Thompson wrote: >> sipForceConvertTo_*() (and related functions) are internal and should not >> be used by handwritten code. If it isn't documented then you can't use >> it. > > Thanks that helps a lot. > > Another question

Re: [PyQt] Link between a QWebViev and a JavaScript program

2009-04-19 Thread projetmbc
Simon Edwards a écrit : projetmbc wrote: I'm seeking for information about how to comunicate from PyQt with a JavaScript program. QWebFrame's evaluateJavaScript() might be a start. Indeed I'm looking for a simple example rather than an abstract one. Christophe.

Re: [PyQt] Regression in SIP sip-4.8-snapshot-20090409 wrt MappedTypes

2009-04-19 Thread Simon Edwards
Hi, Phil Thompson wrote: sipForceConvertTo_*() (and related functions) are internal and should not be used by handwritten code. If it isn't documented then you can't use it. Thanks that helps a lot. Another question. 4.8 gives errors on PyKDE related it trying to use a copy constructor or op

Re: [PyQt] Link between a QWebViev and a JavaScript program

2009-04-19 Thread projetmbc
Simon Edwards a écrit : projetmbc wrote: I'm seeking for information about how to comunicate from PyQt with a JavaScript program. QWebFrame's evaluateJavaScript() might be a start. I also found a whitepaper of QT. I'll try to test that. Thanks for showing me the direction. Christophe. ___

Re: [PyQt] Link between a QWebViev and a JavaScript program

2009-04-19 Thread Simon Edwards
projetmbc wrote: I'm seeking for information about how to comunicate from PyQt with a JavaScript program. QWebFrame's evaluateJavaScript() might be a start. -- Simon Edwards | KDE-NL, Guidance tools, Guarddog Firewall si...@simonzone.com | http://www.simonzone.com/software/ N

[PyQt] Link between a QWebViev and a JavaScript program

2009-04-19 Thread projetmbc
Hello, I'm seeking for information about how to comunicate from PyQt with a JavaScript program. All kind of information is welcome. Christophe. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/

Re: [PyQt] First bottom-up GUI, acting strange

2009-04-19 Thread Nonyaz
On Sun, Apr 19, 2009 at 3:05 AM, Geert Vancompernolle wrote: > Could it be that you need a QApplication.processEvents() call in your > "while" loop? This command gives some CPU to the GUI to update itself. I'm > afraid the "while" loop eats all CPU and there's no time/possibility to > update the

Re: [PyQt] Re: tooltips in menu: how?

2009-04-19 Thread projetmbc
This is normal. When the menu is activated ther is no reason to give a tooltip about it because we know wath is in. Christophe. Wolfgang Rohdewald a écrit : this code works here too - but not always. First place the mouse over the menu and wait until the tooltip "Click here..." appears now

Re: [PyQt] Regression in SIP sip-4.8-snapshot-20090409 wrt MappedTypes

2009-04-19 Thread Phil Thompson
On Sun, 19 Apr 2009 10:25:11 +0200, Simon Edwards wrote: > Hello Phil, > > I'm working on getting PyKDE4 trunk working on SIP 4.8 and PyQt 4.5 and > hit what looks like a fairly straight forward regression bug. > > The compile error is: > > /home/sbe/devel/svn/kde/trunk/KDE/kdebindings/python/

[PyQt] ANN: New eric 4.4 snapshot released

2009-04-19 Thread Detlev Offenbach
Hi, I'd like to inform all of you about the immediate availability of a new eric 4.4 snapshot. It fixes a few bugs and adds these new features. - added a thread list viewer to the debug viewer - added support for forking to the Python debuggers - added code for handling infinite recursions to th

Re: [PyQt] __setitem__ Problem

2009-04-19 Thread Neil Birkbeck
Thanks! Problem solved. Works fine with overloaded __setitem__'s too. Neil Birkbeck On Sat, Apr 18, 2009 at 9:56 AM, Phil Thompson wrote: > On Thu, 16 Apr 2009 12:26:17 -0600 (MDT), Neil Birkbeck > wrote: > > In older versions of sip (4.7.3), I have used __setitem__, __getitem__ to > > > acce

[PyQt] Regression in SIP sip-4.8-snapshot-20090409 wrt MappedTypes

2009-04-19 Thread Simon Edwards
Hello Phil, I'm working on getting PyKDE4 trunk working on SIP 4.8 and PyQt 4.5 and hit what looks like a fairly straight forward regression bug. The compile error is: /home/sbe/devel/svn/kde/trunk/KDE/kdebindings/python/pykde4/sip/kdecore/typedefs.sip: In function ‘int convertTo_KSharedPtr_

Re: [PyQt] First bottom-up GUI, acting strange

2009-04-19 Thread Demetrius Cassidy
Looking over your code, I suspect the problem is with this line: data = webPage.read(8192) if not data: break Unless data is 0 or None, it will go into an infinite loop. From your description, it does not sound like it will ever return 0. It is also not good programming practic

Re: [PyQt] First bottom-up GUI, acting strange

2009-04-19 Thread Geert Vancompernolle
Nonyaz wrote: I made an attempt to port over a little command line file DL script I wrote into a GUI as a practice working with PyQt. While I have seemingly achieved that goal, the resulting product is not acting as I suspected. When I start a download, the GUI will continue to update as long as