Re: [PyQt] Rapid GUI Programming with Python and Qt

2010-07-27 Thread Hans-Peter Jansen
On Thursday 22 July 2010, 12:29:50 projet...@club-internet.fr wrote: > Hello, > > >>> I certainly hope to cover WebKit. > > You'll make an happy man... ;-) > > >>> You mean a binary package I guess... that's one for Phil:-) > > Yes. You might want to compile it yourself now, _and_ make notes for

Re: [PyQt] debugging symbols

2010-07-29 Thread Hans-Peter Jansen
On Thursday 29 July 2010, 04:43:24 Luke Campagnola wrote: > Howdy, > > Can anyone tell me how to get debugging symbols for the pyqt windows > binaries? I have a few crashes occurring somewhere in QtCore, and so far > my current strategy of "hope the bug exists in Linux too" is not working. > My sea

[PyQt] PyKDE 4.4.4 build failure after switching sip

2010-07-31 Thread Hans-Peter Jansen
Hi Phil, during the course of refreshing my PyQt builds, I've switched from sip 4.10.2 to 4.10.5. Now, the formerly fine PyKDE build from KDE 4.4.4 bail out with: /usr/include/akonadi/kmime/addressattribute.h: In member function 'Akonadi::AddressAttribute& Akonadi::AddressAttribute: :operator

Re: [PyQt] Segfault when activating items in a view, more info

2010-08-09 Thread Hans-Peter Jansen
Hi Peter, while not of big help, here are a few more details and the backtrace. Qt 4.6.3, sip 4.10.5, PyQt4 4.7.4. On Monday 09 August 2010, 09:42:05 pe...@lohmanders.se wrote: > Yes, the connect signal had the wrong signature, but that doesn't matter. > I do not get a warning when trying to con

Re: [PyQt] Segfault when activating items in a view, more info

2010-08-09 Thread Hans-Peter Jansen
On Monday 09 August 2010, 12:20:36 Andreas Pakulat wrote: > On 09.08.10 12:06:57, Hans-Peter Jansen wrote: > > Hi Peter, > > > > while not of big help, here are a few more details and the backtrace. > > > > Qt 4.6.3, sip 4.10.5, PyQt4 4.7.4. > > &g

Re: [PyQt] ImportError: no module name PyQt4 (Windows 7, 64 bit)

2010-08-09 Thread Hans-Peter Jansen
On Monday 09 August 2010, 12:41:31 John McCabe wrote: > Hi > > I've just installed PyQt4 with SIP on my PC and I'm getting the error > "ImportError: no module name PyQt4" when I try to run the qtdemo.pyw > file in the examples folder (see below). Please define "installed". > My first thought w

Re: [PyQt] ImportError: no module name PyQt4 (Windows 7, 64 bit)

2010-08-09 Thread Hans-Peter Jansen
asking me? On Monday 09 August 2010, 15:01:12 John McCabe wrote: > On 09/08/2010 12:44, Hans-Peter Jansen wrote: > > On Monday 09 August 2010, 12:41:31 John McCabe wrote: > >>Hi > >> > >> I've just installed PyQt4 with SIP on my PC and I'm getting

Re: [PyQt] Best way to implement a modular framework?

2010-08-18 Thread Hans-Peter Jansen
On Tuesday 17 August 2010, 21:00:29 Bernard Van Der Stichele wrote: > Hello all, > > I'm looking for some advice as to the best way of implementing an MDI - > like application which is modular. > i.e. I want to have a MainWindow host with a menu which dynamically loads > a list of modules available

Re: [PyQt] QDockwidget advice needed

2010-08-18 Thread Hans-Peter Jansen
On Wednesday 18 August 2010, 18:39:31 danny wrote: > Howdy, > > This is a newbie question. I want to implement the standard paradigm of a > QTreeView as the central widget in a QMainWindow, and a QDockWidget that > shows details about the selected item in the tree. I can get the > QTreeView to work

Re: [PyQt] Installing PyQT on a Mac 10.5.8 PPC

2010-08-18 Thread Hans-Peter Jansen
On Wednesday 18 August 2010, 20:51:45 bestenborstel wrote: > Dear List, > > I apologise if this question has been already asked, however I could > not google a solution. > > I would like to install Spyder on my Mac PPC 10.5.8. ^^^ Ah, fossil Mac computing

Re: [PyQt] Newbie's question about inheritance in QtPy4 classes

2010-08-18 Thread Hans-Peter Jansen
On Wednesday 18 August 2010, 21:15:20 Igor pesando wrote: > Hi all, > > sorry to bother but I'm learning PyQt4 and designer. > Playing with the code suggested in some tutorials I came with the code > below which should NOT work according to my understanding of inheritance > but it works. The probl

Re: [PyQt] QDockwidget advice needed

2010-08-18 Thread Hans-Peter Jansen
On Wednesday 18 August 2010, 22:10:19 danny wrote: > FWIW, I do have Mark Summerfield's book and I agree it is brilliant. > > However, he does not give an example of how to connect a dock window to a > tree item. His examples include how to keep two widgets synchronized, but > that is not my proble

Re: [PyQt] deadlock when using new style signal / slots

2010-09-06 Thread Hans-Peter Jansen
Dear Erik, On Friday 27 August 2010, 21:56:14 Erik Janssens wrote: > Hi, > > Another issue popped up when porting our code to > new style signal slots. > > it appears the deadlock occurs when one thread is > emitting using a pyqtSignal object, while another > thread is connecting the same pyqtSign

Re: [PyQt] QFileDialog crash with Gnome + "Desktop Settings (Default)" + QFileDialog.DontUseNativeDialog

2010-09-06 Thread Hans-Peter Jansen
On Sunday 29 August 2010, 15:40:48 PyCoder PyCoder wrote: > Hi > > I have a lil problem with QFileDialog and i think its a bug but im not > sure... > > > The code is realy simple: > > contSave = QtGui.QFileDialog(self) > contSave.setFileMode(QtGui.QFileDialog.AnyFile) > cont

Re: [PyQt] QDockwidget advice needed

2010-09-06 Thread Hans-Peter Jansen
Dear Al, On Saturday 21 August 2010, 03:42:22 Algis Kabaila wrote: > > Not exactly, but who cares. AFAICS, all you need is the Signals and > > Slots chapter. Unfortunately, it misses the new style signals (because > > Phil invented them later), but you should get hold of them from the > > beginnin

Re: [PyQt] Composite widgets?

2010-09-06 Thread Hans-Peter Jansen
On Monday 06 September 2010, 03:13:29 Peter Milliken wrote: > Prior to embarking on learning PyQt, I wrote my GUI applications using > Tkinter and Pmw. The Pmw widget set is quite nice and provides a library > of composite classes using the Tkinter widgets. > > My question is: > > Is there any (sim

Re: [PyQt] deadlock when using new style signal / slots

2010-09-06 Thread Hans-Peter Jansen
course bothering me. Sounds nice. Is there any VCS I can pull from? Best regards, Pete > Best regards, > > Erik > > On Mon, 2010-09-06 at 10:43 +0200, Hans-Peter Jansen wrote: > > Dear Erik, > > > > On Friday 27 August 2010, 21:56:14 Erik Janssens wrote: > > >

Re: [PyQt] Keypressevent

2010-09-08 Thread Hans-Peter Jansen
[Resend to list also] On Wednesday 08 September 2010, 11:06:59 lucabe...@libero.it wrote: > hello i need to intercept the return and the enter key in a plaintextedit > and i have write this > def keyPressEvent(self, event): > self.plainTextEdit.keyPressEvent(event) > if event.key()

[PyQt] order of flags significant in coercing

2010-09-08 Thread Hans-Peter Jansen
Hi Phil, there's an issue with the order of flags when coercing to int for e.g. QPainter.paintText(): >>> from PyQt4.QtCore import * >>> type(Qt.AlignLeft|Qt.TextWordWrap|Qt.AlignTop) >>> type(Qt.AlignLeft|Qt.AlignTop|Qt.TextWordWrap) Traceback (most recent call last): File "", line 1, in T

Re: [PyQt] Drag to system

2010-09-08 Thread Hans-Peter Jansen
On Wednesday 08 September 2010, 15:05:21 Hugo Léveillé wrote: > I have made a event to get the path of a file dragged into my pyqt app > with this: > > path = event.mimeData().urls() > > But I would like to make to exact opposite ( to drag an item of my app > into another app that expect a file dro

[PyQt] Drop Site example

2010-09-09 Thread Hans-Peter Jansen
Hi Phil et al, here's a PyQt version of the drop site example, that you might want to add to the PyQt examples. Since modularity is a good idea generally, I've kept the modules organization, but renounced supporting translations. Has anybody an idea, which linux app is able to drop real images

Re: [PyQt] Drop Site example

2010-09-10 Thread Hans-Peter Jansen
On Friday 10 September 2010, 01:35:24 David Boddie wrote: > On Fri Sep 10 00:04:27 BST 2010, Hans-Peter Jansen wrote: > > here's a PyQt version of the drop site example, that you might want to > > add to the PyQt examples. Since modularity is a good idea generally, >

[PyQt] Delayed Encoding and Separations examples

2010-09-10 Thread Hans-Peter Jansen
Hi Phil et al, here are two other examples: Delayed Encoding: this is located under examples/draganddrop Separations: add pointed out by David, this is hidden under doc/src/snippets/separations. I've no idea, where to stick this one, but it is a nice example. Although it shows three weaknesses

Re: [PyQt] %MappedType with non-class template arg?

2010-09-10 Thread Hans-Peter Jansen
On Friday 10 September 2010, 11:56:30 Phil Thompson wrote: > On Fri, 10 Sep 2010 10:43:24 +0200, Hans Meine > > wrote: > > Hi again! > > > > Am Freitag 10 September 2010, 10:21:08 Phil wrote: > >> So the template arguments are constant, so don't even bother with a > >> template in sip. Just do...

[PyQt] minor svgviewer fixes

2010-09-13 Thread Hans-Peter Jansen
Hi Phil et al, here are some minor svgviewer fixes: * the bubbles animation looks fine (again?!?) * highQualityAntialiasingAction handling fixed * wheel zooming works now (instead of throwing exceptions) Could somebody explain, what the background option/action is supposed to do? To me, it loo

Re: [PyQt] Converting an ugly path to a shell path

2010-09-13 Thread Hans-Peter Jansen
On Monday 13 September 2010, 20:18:39 amfr...@web.de wrote: > Hi, > > im using a QFileDialog to let the user select a path that is used later > in a command send to the shell like this: > > retcode = Popen(command + " " + path, shell=True, stdout = PIPE, stderr = > PIPE) > > The problem that occurs

Re: [PyQt] Add custom widget to the QMenu

2010-09-13 Thread Hans-Peter Jansen
On Monday 13 September 2010, 20:46:15 matteo.bosc...@boscolini.eu wrote: > Hi all, What I'm trying to do is to have at the right click on > a QGraphicsItem, a QLineEdit . I'm trying to use the following codedef > contextMenuEvent(self, event) :        #qle=QtGui.QLineEdit()             >    menu =Q

Re: [PyQt] Access to lines of text on textEdit.

2010-09-13 Thread Hans-Peter Jansen
On Tuesday 14 September 2010, 01:54:01 Algis Kabaila wrote: > Is it possible to access lines of text in a textEdit? If so how can I > find information about it? Depending on document type, try this: document().findBlockByLineNumber(lineNumber).text() Pete ___

[PyQt] Howto use the Qt documentation successfully - Was: Re: Access to lines of text on textEdit.

2010-09-14 Thread Hans-Peter Jansen
On Tuesday 14 September 2010, 09:48:47 Algis Kabaila wrote: > > On Tuesday 14 September 2010, 01:54:01 Algis Kabaila wrote: > > > Is it possible to access lines of text in a textEdit? If so how can > > > I find information about it? > > On Tuesday 14 September 2

Re: [PyQt] Howto use the Qt documentation successfully - Was: Re: Access to lines of text on textEdit.

2010-09-14 Thread Hans-Peter Jansen
On Tuesday 14 September 2010, 17:51:28 Steve Borho wrote: > On Tue, Sep 14, 2010 at 4:08 AM, Hans-Peter Jansen wrote: > > On Tuesday 14 September 2010, 09:48:47 Algis Kabaila wrote: > >> > On Tuesday 14 September 2010, 01:54:01 Algis Kabaila wrote: > >> > > Is

Re: [PyQt] Howto use the Qt documentation successfully - Was: Re: Access to lines of text on textEdit.

2010-09-14 Thread Hans-Peter Jansen
epositories/home:/frispete:/pyqt/ > I am starting to think I might have been better off staying with Tkinter > and its derivatives... You get what you deserve. It's *your* decision after all. Pete > On Wed, Sep 15, 2010 at 4:48 AM, Hans-Peter Jansen wrote: > > Download a ma

Re: [PyQt] Howto use the Qt documentation successfully - Was: Re: Access to lines of text on textEdit.

2010-09-15 Thread Hans-Peter Jansen
On Wednesday 15 September 2010, 01:25:39 Peter Milliken wrote: > On Wed, Sep 15, 2010 at 9:05 AM, Hans-Peter Jansen wrote: > > Come on, Peter, that's not fair. Phil decided to not provide the bulky > > docs in an otherwise pretty complete package for Windows users: please >

Re: [PyQt] Weird problem with QSystemTrayIcon

2010-09-15 Thread Hans-Peter Jansen
On Wednesday 15 September 2010, 20:34:12 Eric Frederich wrote: > > In the end, I wound up with a small sample application where for > some reason I need to call QtGui.QGroupBox() with some string or I'll > never see the system tray icon. > > Below is example code. > > If you remove the line ... >

Re: [PyQt] Howto use the Qt documentation successfully

2010-09-15 Thread Hans-Peter Jansen
On Wednesday 15 September 2010, 19:50:11 Robert Lummis wrote: > I'd like to second Peter Milliken's sentiments. The PyQt documentation > that's available is (in my opinion) pretty poor. Finding a way to do > something that you haven't done before by browsing the documentation > is nearly impossible

Re: [PyQt] python cxfreeze package pyqt app lost icon and tray icon

2010-09-16 Thread Hans-Peter Jansen
On Thursday 16 September 2010, 08:38:00 Von wrote: > Hi, > Here is my command: > cxfreeze --target-dir=AutoOrder gui.py > --base-name=D:\Python31\Lib\site-packages\cx_Freeze\bases\Win32GUI.exe > --include-path=. -z icon.jpg I haven't used cx_freeze, but why don't you wrap them into a python module

Re: [PyQt] Why am I missing a mouseRelease event in QWidget and QGLWidget?

2010-09-16 Thread Hans-Peter Jansen
On Thursday 16 September 2010, 10:52:10 HundredsAnd100s wrote: > I'm new to both PyQt and Qt, so apologies if this is obvious. I'm trying > to track mouse events with a QGLWidget but it's not working quite like > expected. I switched to a QWidget to avoid any possible complications but > the proble

Re: [PyQt] python cxfreeze package pyqt app lost icon and tray icon

2010-09-16 Thread Hans-Peter Jansen
On Thursday 16 September 2010, 13:30:28 Von wrote: > Hi Hans,strange thing happens > I put my icon.jpg file into the qrc file and compile it to py file.when I > run my Main.py directly I can see the icon show up correctly,but while I > use cxfreeze to package it,then it can't find the resource at a

Re: [PyQt] python cxfreeze package pyqt app lost icon and tray icon

2010-09-16 Thread Hans-Peter Jansen
On Thursday 16 September 2010, 15:57:07 Von wrote: > Hi,Armando thanks for your advice,it seems more complicated. > I wonder is there a simple way to resolve it? You might want to try PyInstaller, that has a better dependency resolution. Pete ___ PyQt m

Re: [PyQt] KConfigSkeleton and pyqt4 API version 2

2010-09-17 Thread Hans-Peter Jansen
Hi Wolfgang, first of all, this is the wrong list for PyKDE issues. Try to resend this to the kde-bindings ML: https://mail.kde.org/mailman/listinfo/kde-bindings On Friday 17 September 2010, 00:11:18 Wolfgang Rohdewald wrote: > Hi, > > this code prints random output. How should I fix this? > >

Re: [PyQt] Howto use the Qt documentation successfully.

2010-09-17 Thread Hans-Peter Jansen
Dear Al, On Friday 17 September 2010, 02:55:08 Algis Kabaila wrote: > > IMO, more tutorial material could be useful. Pete, would you encourage > tutorials written by newbies for newbies? Of course I do, and as written the other day, I'm willing to review them. Just point me to the wiki page. Pe

Re: [PyQt] OT: System idle time

2010-09-17 Thread Hans-Peter Jansen
On Friday 17 September 2010, 12:41:49 Hugo Léveillé wrote: > Hey > > A little OT here but I am sure one of you filks got the answer. Under > linux, what is the python command to get the system idle time. By idle > time, I mean mouse move or keyboard pressed. I got it for windows and > OSX but not L

Re: [PyQt] OT: System idle time

2010-09-17 Thread Hans-Peter Jansen
installed on your system to install PyXSS. That's a nice suggestion, and brought up http://yjl.googlecode.com/hg/Python/pxss.py which exactly does, what I suggested... Cheers, Pete > 2010/9/17 Hans-Peter Jansen > > > On Friday 17 September 2010, 12:41:49 Hugo Léveillé wrote: >

Re: [PyQt] advice needed for dragging icons off a toolbar

2010-09-17 Thread Hans-Peter Jansen
On Saturday 18 September 2010, 00:17:38 danny wrote: > Howdy, > > I have a newbie question. I want to construct a toolbar with standard > looking icons, only I don't want to click them, I want to drag them like > the "draggable icons" example. I will have four buttons on the toolbar. > What I don't

Re: [PyQt] advice needed for dragging icons off a toolbar

2010-09-18 Thread Hans-Peter Jansen
On Saturday 18 September 2010, 01:02:57 danny wrote: > > The natural choice would be QToolButton of course, but did you also > > considered the surprising behavior change for your users (that don't > > expect those items being draggable..)? > > Thanks for the response. The natural question now, is

Re: [PyQt] pyqt installation error

2010-09-21 Thread Hans-Peter Jansen
On Tuesday 21 September 2010, 13:41:29 Ben George wrote: > Thanks for your reply..i am a beginner so can u please give ma step by > setp procedure..pleaase > > > > > On Tue, Sep 21, 2010 at 2:29 PM, Phil Thompson > > wrote: > > On Tue, 21 Sep 2010 13:15:56 +0300, Ben George > > > > wrote: > > > wh

Re: [PyQt] pyqt installation error

2010-09-21 Thread Hans-Peter Jansen
On Tuesday 21 September 2010, 15:46:43 Ben George wrote: > i tried this > > again i got error > > > > [r...@server PyQt-x11-gpl-4.7.7]# python configure.py --verbose --qmake > /usr/lib/qt-3.3/bin/qmake4 > usage: python configure.py [opts] [macro=value] [macro+=value] > > configure.py: error: '/usr/

Re: [PyQt] stopping tool button from staying depressed in D

2010-09-21 Thread Hans-Peter Jansen
On Tuesday 21 September 2010, 18:30:33 danny wrote: > Howdy, > > I'm in progress dragging icons off a toolbar. I currently create > QToolButtons and use addWidget to add them to the toolbar. I am starting > the drag by connecting to the pressed even of the QToolButton, e.g. > > button.pressed.conne

[PyQt] kdebindings 4.4.4 build failure with sip-4.11.1

2010-09-21 Thread Hans-Peter Jansen
Hi Simon, in an attempt to build python-kde4 from kdebindings-4.4.4, I stumbled across this failure: sip:  /usr/src/packages/BUILD/kdebindings-4.4.4/python/pykde4/sip/kdecore/typedefs.sip:737:  Mapped type has already been defined in another module make[2]: *** [python/pykde4/sip/akonadi/sipak

Re: [PyQt] kdebindings 4.4.4 build failure with sip-4.11.1 continues

2010-09-22 Thread Hans-Peter Jansen
On Wednesday 22 September 2010, 08:24:05 Simon Edwards wrote: > Hello, > > On 09/21/2010 11:32 PM, Hans-Peter Jansen wrote: > > in an attempt to build python-kde4 from kdebindings-4.4.4, I stumbled > > across this failure: > > > > sip:  > > /usr/src/package

Re: [PyQt] Skinning the title bar and window border

2010-09-22 Thread Hans-Peter Jansen
On Wednesday 22 September 2010, 11:36:41 pard wrote: > Hi David > > Thanks for your response. Do you have any resources that would show how > to do this? Tutorials, examples, etc. > I do need to change the style of the window frame. Doing that is not so popular, as it usually confuses your users m

Re: [PyQt] Skinning the title bar and window border

2010-09-22 Thread Hans-Peter Jansen
[Sorry for mangling the receiver list - I prefer to keep this discussion on this list] On Wednesday 22 September 2010, 12:47:54 pard wrote: > Hi Pete > > I understand why it is not popular. However, this is a requirement for > work purposes. > I had created a working program using wxpython for th

Re: [PyQt] Performance deterioration when using integer spin boxes

2010-09-22 Thread Hans-Peter Jansen
On Wednesday 22 September 2010, 15:45:15 Preisig, Heinz A wrote: > I observed that when using integer spin boxes in a timed loop the > performance drops significantly after changing a value. Heinz, could you elaborate on "using integer spin boxes in a timed loop" a bit, please? I don't grasp the

Re: [PyQt] Skinning the title bar and window border

2010-09-23 Thread Hans-Peter Jansen
gt; > > > -Original Message- > > > From: pyqt-boun...@riverbankcomputing.com [mailto:pyqt- > > > boun...@riverbankcomputing.com] On Behalf Of pard > > > Sent: Wednesday, September 22, 2010 6:48 AM > > > To: Hans-Peter Jansen > > > Cc: pyqt@

Re: [PyQt] Error in compiling the library

2010-09-24 Thread Hans-Peter Jansen
On Friday 24 September 2010, 06:41:48 Kannan U V wrote: > H, > I am trying to compile PyQt and get the following error. I have > python 2.4.3 and Qt 4.7.0 on a CentOS 5.5 > > make[1]: Leaving directory > `/home/kannanuv/software/PyQt-x11-gpl-4.7.7/pylupdate' > make[1]: Entering directory > `/home/

Re: [PyQt] kdebindings 4.4.4 build failure with sip-4.11.1 continues

2010-09-24 Thread Hans-Peter Jansen
On Wednesday 22 September 2010, 11:25:21 Hans-Peter Jansen wrote: > > Unfurtunately, here's the next stumbling point: > > /usr/include/kio/tcpslavebase.h: In function 'PyObject* > slot_KIO_TCPSlaveBase_SslResult___xor__(PyObject*, PyObject*)': > /usr/include/ki

Re: [PyQt] synced line edits

2010-09-24 Thread Hans-Peter Jansen
On Friday 24 September 2010, 22:58:10 Eric Frederich wrote: > I'm having some trouble trying to figure out how to get two line edits to > constantly be in sync including cursor position. > I'm sure its simple, or a matter of creating the right connections, but I > can't seem to figure it out. > I'm

Re: [PyQt] Bug in sip-4.11.1 and PyQt-4.7.7 ?

2010-09-27 Thread Hans-Peter Jansen
On Monday 27 September 2010, 21:17:35 Darren Dale wrote: > On Mon, Sep 27, 2010 at 3:02 PM, Vicente Sole wrote: > > Hi Gerard, > > > > Quoting Gerard Vermeulen : > >>  Phil, > >> > >> when running the following code > >> > >> #!/usr/bin/env python > >> # -*- coding: utf-8 -*- > >> > >> import PyQt

Re: [PyQt] TableWidget sorting

2010-09-27 Thread Hans-Peter Jansen
[Hugo, please don't hijack threads, e.g. don't hit reply in a thread, better just click on the list email address (hopefully, your webmailer supports that)] On Monday 27 September 2010, 20:07:58 Hugo Léveillé wrote: > I'd like to sort by number size instead of alpha order. Cause by > default, fo

Re: [PyQt] Can't find qmake when configuring PyQt

2010-09-27 Thread Hans-Peter Jansen
On Monday 27 September 2010, 21:27:56 dizou wrote: > I am trying to build PyQt 4.7.4. > I have successfully installed Qt 4.6.3 to /local/Qt-4.6.3. > I have /local/Qt-4.6.3/bin in my path. > When I do this: > python configure.py > or > python configure.py -q /local/Qt-4.6.3/bin/qmake > I get this er

Re: [PyQt] kdebindings 4.4.4 build failure with sip-4.11.1 continues

2010-09-28 Thread Hans-Peter Jansen
s not your business, but before I revert and downgrade sip, it would be nice, if you could look briefly into it. Thanks, Pete On Friday 24 September 2010, 13:04:26 Hans-Peter Jansen wrote: > On Wednesday 22 September 2010, 11:25:21 Hans-Peter Jansen wrote: > > Unfurtunately, here's

Re: [PyQt] pyuic4 vs uic.loadUI

2010-09-28 Thread Hans-Peter Jansen
On Tuesday 28 September 2010, 18:19:43 pard wrote: > Hi > > I have found that some people use pyuic4 to compile their ui files and > some load them dynamically using loadUI. > Does anyone have the pro's and con's of each of these methods? What is > the recommended PyQT way of doing > this? Being i

[PyQt] PyQt4 flags processing

2010-09-29 Thread Hans-Peter Jansen
Hi Phil, I believe, that code like this ought to run correctly: from PyQt4 import QtCore, QtGui class Widget(QtGui.QWidget): def __init__(self, parent = None, flags = 0): super(Widget, self).__init__(parent, flags) app = QtGui.QApplication([]) win = Widget() win.show() app.exec_()

Re: [PyQt] PyQt4 flags processing

2010-09-29 Thread Hans-Peter Jansen
On Wednesday 29 September 2010, 18:22:18 Phil Thompson wrote: > On Wed, 29 Sep 2010 11:11:41 +0200, "Hans-Peter Jansen" > > wrote: > > Hi Phil, > > > > I believe, that code like this ought to run correctly: > > > > from PyQt4 import QtCore, QtGui

Re: [PyQt] Translating from a function

2010-09-29 Thread Hans-Peter Jansen
On Wednesday 29 September 2010, 22:39:44 Eric Frederich wrote: > After trying a bunch of different ways I finally got the translate > function to work. > I am now having a hard time trying to shorten it up. > > This ... > QCoreApplication.translate("MyContext", "My String") > ... is a bit much. > >

Re: [PyQt] trouble installing pyqt4 from source on fedora 13

2010-09-30 Thread Hans-Peter Jansen
On Thursday 30 September 2010, 19:34:28 Darren Dale wrote: > On Thu, Sep 30, 2010 at 12:09 PM, Baz Walter wrote: > > On 30/09/10 16:24, Darren Dale wrote: > >> I tried also to find how the fedora devs managed to patch and build > >> pyqt in the fedora environment, but I can't find anything. Aren't

Re: [PyQt] kdebindings 4.4.4 build failure with sip-4.11.1 continues

2010-09-30 Thread Hans-Peter Jansen
On Thursday 30 September 2010, 14:27:47 Phil Thompson wrote: > On Wed, 22 Sep 2010 11:25:21 +0200, "Hans-Peter Jansen" > > /usr/include/kio/tcpslavebase.h:63: error: 'enum > > KIO::TCPSlaveBase::SslResultDetail' is protected > > /usr/share/sip/PyQt4/Q

Re: [PyQt] pyqt server side and pdf file output

2010-10-01 Thread Hans-Peter Jansen
On Friday 01 October 2010, 14:35:11 damiano michael wrote: > hi ! > > i would like to write a server side python script that generate .pdf > documents. > > for the moment i have Python 2.7 installed server side > and matplolib installed server side too. > > A simple script that create a simple pl

[PyQt] pyuic4 issues uncovered from PyQwt5

2010-10-04 Thread Hans-Peter Jansen
Hi Phil, I've tackled to build PyQwt5 in my build service repo for openSUSE again: https://build.opensuse.org/project/show?project=home%3Afrispete%3APyQt http://download.opensuse.org/repositories/home:/frispete:/PyQt/ A few tests revealed some issues of pyuic4. Try to compile the attached ui de

Re: [PyQt] Embedding a font into a resource file

2010-10-04 Thread Hans-Peter Jansen
On Monday 04 October 2010, 15:49:07 pard wrote: > Hi > > Is it possible to embed a font into a resource file and set the > application font from the compiled resource file? You can add __any__ data to the resource file, but you should keep in mind, that this data is always loaded into memory on s

Re: [PyQt] PyQt support for Qt 4.7

2010-10-04 Thread Hans-Peter Jansen
On Monday 04 October 2010, 17:52:40 Giovanni Bajo wrote: > On 10/4/2010 3:07 PM, Phil Thompson wrote: > > On Mon, 4 Oct 2010 07:35:00 -0500, "Jonathan > > Harper" > > > > wrote: > >> I've been waiting for Qt 4.7 for some time now, as QFileSystemModel > >> has > > > > a > > > >> directoryLoaded sign

[PyQt] LightMaps example

2010-10-05 Thread Hans-Peter Jansen
Hi Phil, hi PyQtnistas, here's another nice example for the collection. LightMaps is intended for demonstrating, how to display OpenStreetMap maps on mobile devices. It uses interesting tricks including caching for the networking part, shows, how to deal with tiled images, and has a funny mag

Re: [PyQt] Newbie: get one of several QDockWidgets to perform action on

2010-10-05 Thread Hans-Peter Jansen
On Tuesday 05 October 2010, 13:42:45 Knacktus wrote: > Hi everyone, > > I'm kind of stuck to find the best approach for handling multiple > dockwidgets. > > Imagine this case: I have a QMainWindow with two QDockWidgets. Each > QDockWidget contains one QTreeView. Now I'd like to implement a button >

Re: [PyQt] LightMaps example

2010-10-05 Thread Hans-Peter Jansen
On Tuesday 05 October 2010, 17:34:36 Phil Thompson wrote: > On Tue, 5 Oct 2010 10:42:43 +0200, "Hans-Peter Jansen" > > > > here's another nice example for the collection. > > > > LightMaps > > Thanks - it will be in tonight's snapshot. &

Re: [PyQt] LightMaps example

2010-10-05 Thread Hans-Peter Jansen
On Tuesday 05 October 2010, 18:20:30 Phil Thompson wrote: > On Tue, 5 Oct 2010 18:07:25 +0200, "Hans-Peter Jansen" > > wrote: > > On Tuesday 05 October 2010, 17:34:36 Phil Thompson wrote: > >> On Tue, 5 Oct 2010 10:42:43 +0200, "Hans-Peter Jansen" >

[PyQt] PyQt 3.18.1 qApp.translate() issues since sip 4.11.1 (at least)

2010-10-06 Thread Hans-Peter Jansen
Hi Phil, today, I noticed, that there's an ugly issue, resulting in such tracebacks: Traceback (most recent call last): File "main.py", line 84, in win = MainWin() File "mainwin.py", line 25, in __init__ MainWinBase.__init__(self, parent, name, fl) File "mainwinbase.py", line 44, i

Re: [PyQt] selectionChanged or currentChanged in QTreeView

2010-10-06 Thread Hans-Peter Jansen
On Wednesday 06 October 2010, 22:57:10 danny wrote: > Howdy, > > I have a QTreeView and I want to tie a dock window properties editor to > the currently selected node. This is a pretty standard paradigm that I > can't find in any of the samples. http://qt.nokia.com/products/appdev/add-on-products/

Re: [PyQt] PyQt 3.18.1 qApp.translate() issues since sip 4.11.1 (at least)

2010-10-07 Thread Hans-Peter Jansen
On Thursday 07 October 2010, 13:14:45 Phil Thompson wrote: > On Wed, 6 Oct 2010 14:33:29 +0200, "Hans-Peter Jansen" > > today, I noticed, that there's an ugly issue, resulting in such > tracebacks: > > > > As you can see, qApp is always involved, translat

Re: [PyQt] how to close editor in QTreeView

2010-10-08 Thread Hans-Peter Jansen
On Friday 08 October 2010, 18:55:11 Danny wrote: > Howdy, > > In my application, I create a tree by drag and drop. When I drop an > item, I immediately open the item editor delegate so the user can > type the item text. I am implementing undo/redo, and both the item > creation and text editing go i

Re: [PyQt] Clearing and disabling a QLineEdit causes a cursor to be shown?

2010-10-09 Thread Hans-Peter Jansen
On Saturday 09 October 2010, 14:43:19 Nick Gaens wrote: > Hello everybody, > > When trying to "reset" a form, consisting out of some QLineEdits and > QSpinBoxes, I use this small piece of code: > > > for field in [self.customerDataLayout.itemAtPosition(row, 1) for row > in xrange(0, self.customerDa

[PyQt] ANN: automated daily snapshot builds on openSUSE build service

2010-10-10 Thread Hans-Peter Jansen
Hi Phil, hi PyQtnistas, while it may sound uninteresting for you, this has some value, even if you don't care about openSUSE at all. New sip4, PyQt3 and PyQt4 snapshots get build against a range of gcc and Qt versions automatically, e.g. without human intervention (if all goes well, famous la

Re: [PyQt] PyQt 3.18.1 qApp.translate() issues since sip 4.11.1 (at least)

2010-10-10 Thread Hans-Peter Jansen
On Saturday 09 October 2010, 15:26:45 Phil Thompson wrote: > On Thu, 7 Oct 2010 20:53:51 +0200, "Hans-Peter Jansen" > > > > Okay, here we go. It's bigger then I hoped, and does don't crash > > reliable. It behaves fine most of the time, and the is

Re: [PyQt] PyQt 3.18.1 qApp.translate() issues since sip 4.11.1 (at least)

2010-10-11 Thread Hans-Peter Jansen
On Monday 11 October 2010, 00:33:18 Hans-Peter Jansen wrote: > > Python version: 2.6 > sip version: 4.11.2-snapshot-43c2359df596 > Qt4 version: 4.6.3 > PyQt4 version: snapshot-4.8-d3b4450b28c5 Grmpf: Python version: 2.6 sip version: 4.11.2-snapshot-43c2359df596 Qt3 version: 3.3.8

Re: [PyQt] PyQt 3.18.1 qApp.translate() issues since sip 4.11.1 (at least)

2010-10-11 Thread Hans-Peter Jansen
On Monday 11 October 2010, 13:22:02 Phil Thompson wrote: > On Mon, 11 Oct 2010 09:23:47 +0200, "Hans-Peter Jansen" > > > > sip version: 4.11.2-snapshot-43c2359df596 > > That's not the version with the fix. Confirmed. I wasn't able to reproduce the p

Re: [PyQt] QDockWidget sizing behavior

2010-10-11 Thread Hans-Peter Jansen
On Monday 11 October 2010, 16:17:21 John Wiggins wrote: > Hello, > > I'm laying out part of the UI for my app using a QMainWindow with no > central widget and 4 dock widgets. I'd like the dock widgets to be > sized proportionally to each other but they seem to ignore the value > returned by sizeHin

Re: [PyQt] QDockWidget sizing behavior

2010-10-11 Thread Hans-Peter Jansen
On Monday 11 October 2010, 17:58:35 John Wiggins wrote: > On Mon, Oct 11, 2010 at 10:33 AM, Hans-Peter Jansen wrote: > > On Monday 11 October 2010, 16:17:21 John Wiggins wrote: > > > Hello, > > > > > > I'm laying out part of the UI for my app using a QMa

[PyQt] QMdiArea persistence issue with closed windows

2010-10-13 Thread Hans-Peter Jansen
Hi Phil, while looking at dynamic resizing widgets on irc, David Boddie created a small script, that I improved a little bit, which shows a small bug with mdi windows. According to the doc of QMdiArea::addSubWindow, closing windows should stay hidden, but if you close the mdi window, and adds

Re: [PyQt] QMdiArea persistence issue with closed windows

2010-10-13 Thread Hans-Peter Jansen
On Wednesday 13 October 2010, 21:30:08 Phil Thompson wrote: > On Wed, 13 Oct 2010 15:44:58 +0200, "Hans-Peter Jansen" > > > wrote: > > Hi Phil, > > > > while looking at dynamic resizing widgets on irc, David Boddie > > created a > > > >

[PyQt] ANN: automated daily snapshot builds for PyQt and friend on openSUSE build service

2010-10-14 Thread Hans-Peter Jansen
[Sorry for cross posting] Hi PyQtnistas, I proudly announce the availability of automated builds of the most current PyQt and related packages including snapshots on openSUSEs build service for openSUSE 11.1, 11.2 and 11.3, here: https://build.opensuse.org/project/monitor?project=home%3Afrispe

Re: [PyQt] Resizing of layout on runtime

2010-10-15 Thread Hans-Peter Jansen
On Friday 15 October 2010, 22:34:49 Andrew Matsusaka wrote: > I've created a custom widget that contains quite a few QLabels and > QTextEdits. I'm connecting to a MySQL database and retrieving a > certain number of items that I want to display through these custom > widgets by creating a widget for

Re: [PyQt] QThread and qRegisterMetaType

2010-10-17 Thread Hans-Peter Jansen
On Sunday 17 October 2010, 19:04:16 Janwillem van Dijk wrote: > I want the output of a function that runs in a thread to be shown in > a QPlainTextEdit on the main window. Now this crashes with a message > that I sould use qRegisterMetaType. There are dozens of entries on > the web on this but I co

[PyQt] PyQt instances as method defaults eval to bool

2010-10-18 Thread Hans-Peter Jansen
Hi Phil, current sip and PyQt show some issues with PyQt instances, that are used as method defaults, e.g. the usual "parent = QtCore.QModelIndex()" in Qt's model/view paradigm. Run the itemviews/editabletreemodel.py example, select an item, and try to insert or remove a column. Results in tr

[PyQt] Request for __lshift__ support in QPolygonF for QPointF

2010-10-18 Thread Hans-Peter Jansen
Hi Phil, any deeper reason, why code like this is not supported: import math from PyQt4 import QtCore, QtGui class StarRating(object): # enum EditMode Editable, ReadOnly = range(2) PaintingScaleFactor = 20 def __init__(self, starCount, maxStarCount = 5): self._starCount

Re: [PyQt] dip snapshot with many test failures

2010-10-19 Thread Hans-Peter Jansen
On Tuesday 19 October 2010, 15:38:02 Phil Thompson wrote: > On Tue, 19 Oct 2010 15:25:25 +0200, "Hans-Peter Jansen" > > > wrote: > > Hi Phil, > > > > in an attempt to build dip-py2-gpl-0.3-snapshot-dc1c5e94a3f3, I > > noticed a huge number of test

Re: [PyQt] PyQt4.7.7 QGraphics Effetc dont work

2010-10-19 Thread Hans-Peter Jansen
On Tuesday 19 October 2010, 20:44:02 kirotawa wrote: > Hi, > I installed the Pyqt4.7.7 but the QgraphicsEffect dont work, just it > module. Somebody knows why this? > I use python 2.6, my ubuntu is 9.04, yet. ..but you miss to provide a minimum example, that demonstrates your issue. Try to see

Re: [PyQt] Incompotible signatures

2010-10-20 Thread Hans-Peter Jansen
On Wednesday 20 October 2010, 12:23:36 Alexandr N Zamaraev wrote: > I upgrade my Kubuntu to 10.10. > (libqtcore4 v4.7.0-0ubuntu4, python-sip v4.10.5-0ubuntu1, python-qt4 > v4.7.4-0ubuntu1) > And I receive TypeError for my projects > > Sample code (file slots.py): > #! /usr/bin/env python > # -*- co

[PyQt] star delegate example for current PyQt snapshot

2010-10-20 Thread Hans-Peter Jansen
Hi Phil et al., now, that you added __lshift__ for QPolygonF()'s, here's the star delegate example in return, using this feature of course. I did change the behavior a minor bit, but it feels silly to be forced to select _and_ double click an item in order to trigger editing. Double clicking s

Re: [PyQt] PyQt4.7.7 QGraphics Effetc dont work

2010-10-20 Thread Hans-Peter Jansen
[please keep the mailing list cc'ed at least, and personal reply] On Wednesday 20 October 2010, 19:25:33 leo kirotawa wrote: > Sorry, > I should have shown more details. > So, I installed the PyQt4.7.7 in my ubuntu 9.04 through this link > http://www.riverbankcomputing.co.uk/software/pyqt/downloa

Re: [PyQt] question on drag and drop

2010-10-20 Thread Hans-Peter Jansen
On Wednesday 20 October 2010, 18:18:12 danny wrote: > > whenever i encounter situations where i'm going to reimplement > > virtual methods, i will usually take a look at the qt source at > > some point. i will look at the details of the default > > implementation, and also how the method is used in

Re: [PyQt] QSettings usage - multiple?

2010-10-21 Thread Hans-Peter Jansen
On Thursday 21 October 2010, 16:16:21 Baz Walter wrote: > On 20/10/10 14:22, Randy Heiland wrote: > > Hello, > > > > Is it possible to have multiple QSettings files for an app? > > Basically, our situation is that we have an app and we save various > > params associated with the app via the QSetti

Re: [PyQt] dynamically determine if in a macro?

2010-10-21 Thread Hans-Peter Jansen
On Thursday 21 October 2010, 19:07:21 danny wrote: > I am implementing undo/redo.Is there any way to dynamically determine > if you are currently in the middle of a macro? I have a block a code > that sometimes executes when in a macro and is otherwise ignored. I > want to know if there is a way to

  1   2   3   4   5   6   7   8   9   >