Re: [PyQt] PocketPC port of PyQT4

2009-02-10 Thread David Boddie
On Mon Feb 9 21:47:14 GMT 2009, Frédéric wrote: > > Is there a port of PyQt4 for PocketPC ? > > Nobody is using PyQt on WindowsCE? This was briefly discussed last year, it seems: http://www.riverbankcomputing.com/pipermail/pyqt/2008-May/019307.html I don't know if anyone has managed to get it r

Re: [PyQt] how to show interactive Picture

2009-02-10 Thread David Boddie
On Tue Feb 10 15:02:13 GMT 2009, Markus Feldmann wrote: > I think my Problem is that i have to send an envent? Yes, you need to make a paint event happen. You can do this by calling the update() method on the widget you want to be updated. > As you wrote i changed some of my code. I parted my >

Re: [PyQt] Re: how to show interactive Picture

2009-02-10 Thread David Boddie
On Tue, 10 Feb 2009 22:42:24 +0100, Markus Feldmann wrote: > > I go it. :-) :-) > I am not sure, but maybe i have to set a Widget in > the ScrollArea, and in this Widget i may paint? That's the idea, yes. > Here is my Code: [...] > class ScrollArea(QScrollArea): >      def __init__(self, pare

Re: [PyQt] Re: how to show interactive Picture

2009-02-10 Thread David Boddie
On Tue Feb 10 18:15:52 GMT 2009, Markus Feldmann wrote: > To compare i post the example. > There are some commands in the example i didn't understand. > > I do some notes in the Code !!! > > import sys > from PyQt4 import QtCore, QtGui > > import basicdrawing_rc Note that you need to have this mo

Re: [PyQt] LGPL license.

2009-02-10 Thread David Boddie
On Tue Feb 10 21:49:57 GMT 2009, Stef Mientki wrote: > >> On 10.02.09 19:56:44, Knapp wrote: > > > > That is the best I can tell by all that but really someone could just > > be straight and answer my question. Are you in a hurry or something? Qt won't be LGPL until the final 4.5 release so there

Re: [PyQt] Re: how to show interactive Picture

2009-02-10 Thread David Boddie
On Tue Feb 10 23:04:55 GMT 2009, Markus Feldmann wrote: > David Boddie schrieb: > > Here, because you are using a QLabel to show the image, it should > > automatically appear correctly in the QScrollArea. > > > > (Aside: If you create your own custom widget (by subclas

Re: [PyQt] Re: how to show interactive Picture

2009-02-10 Thread David Boddie
On Wed, 11 Feb 2009 00:24:47 +0100, Markus Feldmann wrote: > > Here's what might be causing the image not to appear. If, for some > > reason, the basicdrawing_rc.py file was created without the image data, > > this will fail, leaving you with a null pixmap. > I understand, but my Programm does no

Re: [PyQt] Zoom or scale into an QImage

2009-02-10 Thread David Boddie
On Tue, 10 Feb 2009 22:45:51 +0100, Markus Feldmann wrote: > i have an QScrollArea where i inserted a QLabel. > This QLabel includes an QImage. > > I want to zoom/scale into this image. > How can i do this? Try one of these approaches: 1. Keep the original image and show a scaled copy in the lab

Re: [PyQt] i18n

2009-02-11 Thread David Boddie
On Wed Feb 11 14:57:59 GMT 2009, Frédéric wrote: > Does anybody could point me on example how to use i18n in PyQt? Here's an example of an application that uses i18n: http://qt-apps.org/content/show.php/PyPI+Browser?content=52389 It's not necessarily a good example. ;-) > Riverbank documenta

Re: [PyQt] i18n

2009-02-11 Thread David Boddie
On Wednesday 11 February 2009, Giovanni Bajo wrote: > On 2/11/2009 6:24 PM, David Boddie wrote: > > To avoid problems, I have previously defined a helper method in subclasses > > where I thought it was necessary, like this: > > > > class ActionEditorWidget(QLabel): >

Re: [PyQt] i18n

2009-02-11 Thread David Boddie
On Wednesday 11 February 2009, Giovanni Bajo wrote: > On 2/11/2009 6:49 PM, David Boddie wrote: > > On Wednesday 11 February 2009, Giovanni Bajo wrote: > >> On 2/11/2009 6:24 PM, David Boddie wrote: > > > >>> To avoid problems, I have previously defined a help

Re: [PyQt] PocketPC port of PyQT4

2009-02-12 Thread David Boddie
On Tuesday 10 February 2009, Frédéric wrote: > Is it hard to compile sip/PyQt on such devices? What are the needed > tools? I own an old PocketPC, so I could give it a try. But I need help > to start ;o) One place to start looking for information about Python on mobile devices is this page: http

Re: [PyQt] PocketPC port of PyQT4

2009-02-12 Thread David Boddie
On Thu Feb 12 20:03:49 GMT 2009, Stef Mientki wrote: > Me too thought that PyQt was the solution to be multi-platform, > but from the reactions pocket PC doesn't seem to be included. I think the reason for that has been lack of obvious demand. Getting a version of PyQt up and running with the con

Re: [PyQt] LGPL license.

2009-02-12 Thread David Boddie
On Wed, 11 Feb 2009 18:29:53 +0530, Rajeev J Sebastian wrote: > How about when people (who do not code, and have not coded in their > entire life) also demand that your work be made "free" (as in "free > speech") so that they can profit enormously from it ? That also > strikes me as being cruel. >

Re: [PyQt] PocketPC port of PyQT4

2009-02-13 Thread David Boddie
On Fri Feb 13 07:49:44 GMT 2009, Ingmar Steen wrote: > Anyway, iirc the problem with wxPython on PocketPC had something to do with > a limit on the adressable memory space of the application and it's dlls. > Even if there was enough free memory, wx + python + wxPython just didn't > fit that adress

Re: [PyQt] PocketPC port of PyQT4

2009-02-13 Thread David Boddie
On Fri Feb 13 07:54:08 GMT 2009, Frédéric wrote: > On jeudi 12 février 2009, David Boddie wrote: > > On Thu Feb 12 20:03:49 GMT 2009, Stef Mientki wrote: > > > Me too thought that PyQt was the solution to be multi-platform, > > > but from the reactions pocket PC

Re: [PyQt] ContextMenu for a TreeView

2009-02-17 Thread David Boddie
On Tue Feb 17 01:31:01 GMT 2009, Doug Bell wrote: > projetmbc at club-internet.fr wrote: > > Hello, > > is it possible to define a ContextMenu for a TreeView ? > > Yes, just override QWidget.contextMenuEvent for the view. Without wanting to confuse things, I'd like to point out an alternative appr

pyqt@riverbankcomputing.com

2009-02-17 Thread David Boddie
On Tue Feb 17 14:47:45 GMT 2009, Gabriele Visconti wrote: > What I want to do is to replicate the KDE effect, you know that when you > grab a window and drag it around the window temporary becomes transparent > (low alpha). > I found the relevant Qt class which is setWindowOpacity(), I tried to bu

Re: [PyQt] Scripting framework and licensing

2009-02-19 Thread David Boddie
On Thu Feb 19 10:55:59 GMT 2009, Ulrich Berning wrote: > From paragraph 11 of the Qt commercial license agreement version 3.5 > (qt-x11-commercial-src-4.4.1/.LICENSE): > > - > (vii) Applications may not pass on functionality which in any way makes > it possible for others to create software w

[PyQt] Splash screen with progress bar (was Re: Any Large PyQt Projects?)

2009-02-20 Thread David Boddie
On Fri Feb 20 16:39:11 GMT 2009, Chris Withers wrote: > Toby Dickenson wrote: > > * Startup time while your modules are imported. Plan to have a splash > > screen with a progress bar :-( > > How do you do this with PyQt? One way is to take advantage of the fact that the splash screen is just a wi

Re: [PyQt] Maximum image size for BoxLayout

2009-02-21 Thread David Boddie
On Sat Feb 21 12:46:38 GMT 2009, Deon wrote: > I'm just starting out with PyQT, so still a lot to learn over here. > > I sit with the following layout. > > MainLayout = VBox > VBox Top = Grid > VBox Bottom = HBox > > HBox Left = QList > HBox Right = QLable > > > I want to know what the maximum siz

Re: [PyQt] QCoreApplication::exec: The event loop is already running

2009-03-02 Thread David Boddie
On Mon Mar 2 19:12:00 GMT 2009, Brent Villalobos wrote: > Brian Kelley wrote: > > When you start another mainwindow (or top level widget for that > > matter) you don’t need to call exec_ or make another QApplication. > > That's good. Along those same lines does Qt provide a way of querying > whethe

Re: [PyQt] possible bug in QListWidgetItem

2009-03-03 Thread David Boddie
On Tue Mar 3 17:46:15 GMT 2009, Thomas Coopman wrote: > when I'm trying to subclass QListWidgetItem and try to set something I > get this error: untimeError: underlying C/C++ object has been deleted > > some example code that triggers the bug > > class ItemListWidgetItem(QListWidgetItem): > de

Re: [PyQt] Is there a signal sended by HighLight ?

2009-03-07 Thread David Boddie
On Fri, 6 Mar 2009 23:43:11 +0100, projetmbc wrote: > I would like to know if there is a signal sended by the SyntaxHiglighter > when it catches a change in the text ? That class is designed to be subclassed rather than connected up with signals and slots, but you could emit your own signals when

Re[PyQt] freshing a Widget

2009-03-21 Thread David Boddie
On Fri, 20 Mar 2009 05:29:37 -0700 (PDT), deSam wrote: > I made a widget, from what you can select a product, and once you selected > it, an extra field should show up under the select list. > the field does show up, but its put on top of the select list, > until you move the window, then it is re

Re: [PyQt] QSplashScreen with transparent background

2009-03-23 Thread David Boddie
On Tue Mar 24 00:18:54 GMT 2009, Saúl Ibarra wrote: > I'm sure this question has been answered many times, but I'm not able > to achieve what I want :-/ I just want a splashscreen with a single > png with transparent background. Is this on Linux/Unix? > I'm using the following code: > > pic = Q

Re: [PyQt] Range slider?

2009-03-24 Thread David Boddie
On Mon Mar 23 02:02:51 GMT 2009, Hazen Babcock wrote: > Does anyone know if a widget like this: > http://www.codeproject.com/KB/miscctrl/CRangeSlider/CRangeSlider.gif > exists for Qt? There's a range slider of sorts included in the package mentioned here: http://labs.trolltech.com/blogs/2009/03/

Re: [PyQt] PyQt/SIP snapshots

2009-03-28 Thread David Boddie
On Sat Mar 28 12:57:12 GMT 2009, Phil Thompson wrote: > On Sat, 28 Mar 2009 13:46:48 +0100, Giovanni Bajo > wrote: > > > > is this a good moment to test SIP/PyQt snapshots against Qt 4.5.0? > > Yes. I'm currently working on pyuic4 - everything else should be production > ready. I've found a coupl

Re: [PyQt] PyQt/SIP snapshots

2009-03-28 Thread David Boddie
On Sunday 29 March 2009, Phil Thompson wrote: > On Sat, 28 Mar 2009 21:16:31 +0100, David Boddie > > * pyrcc4 now requires you to pass -py2 for Python 2.x code - this breaks > >existing build environments. Is there a way that it could figure out > >which version of

Re: [PyQt] Type casting

2009-03-31 Thread David Boddie
On Tue Mar 31 19:39:56 BST 2009, Rendezvous wrote: > I am using Qt4.5 and PyQt4 and i have subclassed a QWebView with a custom > contextMenuEvent, and one of the actions of the menu contains the URL of > the link that the action was called for. Without having to perhaps subclass > QAction, i use Q

Re: [PyQt] Type casting

2009-04-01 Thread David Boddie
On Wed Apr 1 07:40:33 BST 2009, Rendezvous wrote: > It prints a QWebPage, which doesn't help anyway, since > calling .currentFrame().url() on it doesn't return the URL of the link that > was clicked on. OK, so the signal is actually emitted by the QWebPage rather than from a QAction. That makes t

Re: [PyQt] PyQt/SIP snapshots

2009-04-01 Thread David Boddie
On Wednesday 01 April 2009, Phil Thompson wrote: > Should be fixed with tonight's snapshots - though I don't have a test case. Here's something that might work to start with: import sys from PyQt4.QtCore import QCoreApplication, QUrl from PyQt4.QtNetwork import QNetworkAccessManager, QNetworkRep

Re: [PyQt] [PyKDE] kioslave example?

2009-04-03 Thread David Boddie
On Fri Apr 3 08:27:54 BST 2009, Lukas Hetzenecker wrote: [Writing kioslaves] > Are there any simple examples for a similar task? > > I only found the API reference for PyKDE4.kio.KIO.Slave, but that doesn't > really help me. I wrote this tutorial for KDE 3 some time ago: http://www.diotavelli

Re: [PyQt] Help about the use of OpenGL with PyQt

2009-04-04 Thread David Boddie
On Sat Apr 4 17:43:29 BST 2009, Jamie Riotto wrote: > OpenGL Tutorial: > http://cs.uccs.edu/~semwal/indexGLTutorial.html > > Also NeHe productions does a realy great job breaking down OpenGL into > "lessons": My favorite! > http://nehe.gamedev.net/ > > Also, since your accessing OpenGL through PyO

Re: [PyQt] Creating PyQt4 bindings with SIP

2009-04-17 Thread David Boddie
On Thu Apr 16 13:30:43 BST 2009, NARCISO, Rui wrote: > I have donwloaded a Qt4 widget from teh internet and I'm trying to create > the PyQt4 bindings for it. I notice that you're trying to wrap the PictureFlow widget. You may be interested to know that there's already a set of bindings for it on

Re: [PyQt] Call for better SIP documentation (perhaps on wiki)

2009-04-18 Thread David Boddie
On Sat Apr 18 12:44:15 BST 2009, Pim Schellart wrote: > Therefore I call upon the SIP developers and users to create such > documentation perhaps in the form of a wiki, and make SIP the default > choice! Here are two possible starting points: http://www.diotavelli.net/PyQtWiki/MiniSipExample htt

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] Re: I am not geting Oxygen Theme in my PyQt application

2009-04-30 Thread David Boddie
On Thu Apr 30 10:29:38 BST 2009, ap wrote: > I did not get an answer for this query yet. :( > > On Mon, Apr 6, 2009 at 3:22 PM, Anoop wrote: > > > > I am using PyQt4 for developing an application in KDE4. but When I > > displayed a message box using PyQt, i got one without the Oxygen theme. > > W

Re: [PyQt] Bindings for Qxt?

2009-05-02 Thread David Boddie
On Sat May 2 19:39:48 BST 2009, Benjamin Wohlwend wrote: > over the last couple of weeks, I wrote my first PyQt4 application and > released it at http://undercover.piquadrat.ch . My application is a tool to > retrieve and manage artwork for iTunes. So it's self-evident that I have to > use somethi

Re: [PyQt] A list of checkboxes

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

Re: [PyQt] Write BIG QString

2009-05-21 Thread David Boddie
On Mon, 18 May 2009 14:26:59 +0200, Kermit wrote: > i've a big QString to write in a QFile > > i use this syntaxe : > newFile=QFile("newFile.txt") > if not newFile.open(QFile.WriteOnly | QFile.Text): >     print "erreur fichier" > else: >     newFile.writeData(myStr) > > newFile.close() > > > it's

Re: [PyQt] Can't load custom python plugins in qt4 designer

2009-05-29 Thread David Boddie
On Thu, 28 May 2009 13:49:22 +0100, Michael Thompson wrote: >    I'm trying to load a custom plugin in designer, on Ubuntu jaunty. > > I have tried running qtdemo from the python-qt4-doc package but the plugins > do not appear in designer. Do you mean that you tried running the plugins.py example

Re: [PyQt] Can't load custom python plugins in qt4 designer

2009-06-02 Thread David Boddie
On Tue Jun 2 08:20:38 BST 2009, Michael Thompson wrote: > 2009/5/30 David Boddie > > > On Thu, 28 May 2009 13:49:22 +0100, Michael Thompson wrote: > > >I'm trying to load a custom plugin in designer, on Ubuntu jaunty. > > > > > > I have tried ru

Re: [SOLVED] Re: [PyQt] Can't load custom python plugins in qt4 designer

2009-06-02 Thread David Boddie
re-assuring me it worked on your end). No problem, though it seems that there are now more questions than answers. :-) David -- David Boddie Senior Technical Writer Nokia, Qt Software ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] QSettings.registerFormat unavailable in PyQt4?

2009-06-05 Thread David Boddie
On Fri Jun 5 19:25:01 BST 2009, Giovanni Bajo wrote: > On 6/4/2009 10:18 PM, Phil Thompson wrote: > > It can't be wrapped because of the nature of the function pointer > > arguments - bad API design. > > Is it the same with Jambi? I think so - look here: http://doc.trolltech.com/qtjambi-4.5.0_0

Re: [PyQt] ANN hgview 1.0.0 released

2009-06-08 Thread David Boddie
On Sat Jun 6 12:58:35 BST 2009, David Douard wrote: > Let me introduce you the latest kid of the Logilab team: `hgview 1.0.0`_. > > hgview is a very helpful tool for daily work using the excellent DVCS > Mercurial (which we heavily use at Logilab). It looks good! I was looking for a tool like thi

Re: [PyQt] Re: QGraphicsScene addLine, addRect draw order scrambled in Qt 4.4.3 on mac ?

2009-06-09 Thread David Boddie
On Tue Jun 9 10:41:37 BST 2009, denis wrote: > bug: some addLines are hidden by previous addRects in Qt 4.4.3 + mac too, > differently in C and PyQt. The C testcase is below, please forward > (Nokia doesn't seem to respond to bugs that don't show up on handys :) I don't think the order in which

Re: [PyQt] PyQt newbie needs some help with a small report designer program

2009-06-10 Thread David Boddie
On Tue Jun 9 23:56:21 BST 2009, Lee wrote: > I'm new to pyqt and am having a bit of trouble. I'm trying to make a > (_very_) simple report designer. Right now I'm just trying to get a feel > for what I can do in pyqt and so I've laid out a simple program that > represents a document with several

Re: [PyQt] images in PyQt QTextEdit widgets

2009-06-11 Thread David Boddie
On Thu Jun 11 15:54:22 BST 2009, Greg Smith wrote: > I've been trying to find examples or reference on how to take a QImage > object and embed the results into the rich text source of my QTextEdit > or QTextBrowser object. Take a look at this message from earlier in the archives: http://www.rive

Re: [PyQt] QWebPage plug-ins

2009-06-14 Thread David Boddie
On Sun Jun 14 15:39:57 BST 2009, Phil Thompson wrote: > On Sun, 14 Jun 2009 16:02:16 +0200, Alejandro Serrano gmail.com> > > wrote: > > Just for reference: I'm using this tutorial > > http://daniel-albuschat.blogspot.com/2008/12/embedding-qt-widgets-into-qtwebkit.html > > as reference > > Like I

Re: [PyQt] RE: PyQt newbie needs some help with a small report designer program

2009-06-15 Thread David Boddie
On Thu Jun 11 01:22:05 BST 2009, Lee wrote: > >You call its setBackgroundRole() method in its paintEvent() > > implementation. This appears to cause another paint event to be sent to > > the Resizer object, so you just keep receiving paint events. > > Ok, I think that makes sense. Removing does f

Re: [PyQt] What about qtbrowserplugin?

2009-06-19 Thread David Boddie
On Thu Jun 18 14:12:48 BST 2009, piotr malinski wrote: > QtSoftware has in the add-ons catalog qtbrowserplugin package. I wonder if > this framework could get Python API and the possibility to write the > plugins in Python? > > http://www.qtsoftware.com/products/appdev/add-on-products/catalog/4/Ut

Re: [PyQt] What about qtbrowserplugin?

2009-06-20 Thread David Boddie
On Sat Jun 20 15:21:28 BST 2009, piotr malinski wrote: > Well, making a binding for QtNPBindable and QtNPFactory isn't the > problem... as compiling it against the qtbrowserplugin which doesn't > install anywhere on the system -_- even adding the qtbrowserplugin.o > qtbrowserplugin_x11.o to OFILE

Re: [PyQt] What about qtbrowserplugin?

2009-06-20 Thread David Boddie
On Sat, 20 Jun 2009 18:07:40 +0200, David Boddie wrote: > I would implement qtns_instantiate() to return an instance of a QtNPFactory > subclass written in Python. This subclass would do what the QtNPClassList > implementation would do in a C++ plugin - this subclass is made

Re: [PyQt] Re: connection between 2 widget

2009-06-22 Thread David Boddie
On Sun Jun 21 17:37:54 BST 2009, Massimo Di Stefano wrote: > I'm tring to get a solution, > i searced for similar code in the pyqt examples source code > but i can't find nothig similar. > > is the question i proposed comprensible? It's a little difficult for me to understand, but I'll try and wo

Re: [PyQt] Snow Leopard/ Python 2.6 bug

2009-06-22 Thread David Boddie
On Sun, 21 Jun 2009 17:26:30 +1200, Noah Gift wrote: > > Anyone able to get PyQt 4.4.1 or higher running on Snow Leopard?  I used > mac ports to install 4.4.1 and got the following error when running scripts > that worked on Leopard: > % python numbers.pyw > Qt: qcolorFromCGColor: cannot convert fr

Re: [PyQt] setting tab order custom widget

2009-07-07 Thread David Boddie
On Tue Jul 7 15:20:02 BST 2009, Hans-Peter Jansen wrote: > Am Dienstag, 7. Juli 2009 schrieb Hans-Peter Jansen: > > > > Anybody with an idea, what designer needs to consider our widgets in tab > > order setting? > > > > I tried to duck type my widget as a QCheckBox with checkable, checked, > > text

Re: [PyQt] Problem regarding setting text of QTextEdit in a separate thread

2009-07-07 Thread David Boddie
On Tue Jul 7 20:58:46 BST 2009, Shine Jose wrote: > Searching on the net made me realize that setting the text in a separate > thread is not supported in pyQT. Is there any work-around for this problem? > I request you to suggest me any alternative method to find a solution for > my problem. That

Re: [PyQt] Tree View QFileDialog?

2009-07-08 Thread David Boddie
On Wed Jul 8 00:39:27 BST 2009, Brent Villalobos wrote: > Perhaps I'm missing this, but is there a way to get a directory chooser > dialog that shows the directories in a tree view? I've been using > "QtGui.QFileDialog.getExistingDirectory" as a directory-only selector, > but I don't have an opti

Re: [PyQt] Soft-hyphen (SHY) support in QtWebkit embedded into PyQt app

2009-07-11 Thread David Boddie
On Sat, 11 Jul 2009 18:44:59 +1200, Alexei Puzikov wrote: > I'm loading http://www.cs.tut.fi/~jkorpela/shytest.html into the > QWebView, and it does break up the words correctly, but > doesn't show the actual hyphens at the right margin of the text. > > It's even worse for Russian language texts -

Re: [PyQt] Implementing Qt-Designer Widgets in Main Window and lay them out

2009-07-15 Thread David Boddie
On Wed Jul 15 15:46:30 BST 2009, Michael Adolph wrote: > I've got a problem with Qt-Designer and Python. It's pretty basic but I > can't find any solution. > > I designed to forms in Qt-Designer and I'm writing a QMainWindow class in > Python. The widgets are imported and should be layouted. My Pr

Re: [PyQt] Small paid development task

2009-07-16 Thread David Boddie
On Wed, 15 Jul 2009 14:27:45 -0700 (PDT), Jason H wrote: > Well no one jumped at my offer. I am curious, what would it take? My employer probably wouldn't approve if I took you up on your offer, so unless you are considering buying them and forcing them to let me do it, I'll have to politely decl

Re: [PyQt] Small paid development task

2009-07-17 Thread David Boddie
I remembered that someone else had already asked about using the animation API: http://www.riverbankcomputing.com/pipermail/pyqt/2009-April/022813.html Perhaps you guys could join forces. David ___ PyQt mailing listPyQt@riverbankcomputing.com http:

Re: [PyQt] Implementing Qt-Designer Widgets in Main Window and lay them out

2009-07-17 Thread David Boddie
On Wed Jul 15 16:25:07 BST 2009, David Boddie wrote: > On Wed Jul 15 15:46:30 BST 2009, Michael Adolph wrote: > > I've got a problem with Qt-Designer and Python. It's pretty basic but I > > can't find any solution. > > > > I designed to forms in Qt-Desig

Re: [PyQt] (newbie) PyQt module namespaces

2009-07-20 Thread David Boddie
On Mon Jul 20 15:53:03 BST 2009, Imre "Public" Tuske wrote: > So, apart from the fact that it would be a non-pythonic heresy, is > there any danger of importing all PyQt sub-modules into the global > namespace? Is there a risk of say name collisions between the various > sub-modules or any other t

Re: [PyQt] GUI freezing when running large function in QThread

2009-07-21 Thread David Boddie
On Tue Jul 21 17:34:38 BST 2009, Brent Villalobos wrote: > Thanks. I had a feeling that python's GIL (global interpreter lock) > would be a limiting factor. I worked around my performance issue by > doing some smarting caching to avoid some of the more intensive > operations. But for the sake o

Re: [PyQt] GUI freezing when running large function in QThread

2009-07-21 Thread David Boddie
On Tuesday 21 July 2009, Brent Villalobos wrote: > Thanks for the inquires. Like I said before, I've worked around my > performance issues. Now this is only a curiosity for future projects. > See my comments below. > > David Boddie wrote: > > It's not obvio

Re: [PyQt] Bug in QRectF

2009-07-24 Thread David Boddie
On Fri Jul 24 17:56:58 BST 2009, Phil Thompson wrote: > On Fri, 24 Jul 2009 06:16:38 -0700, David Lassonde wrote: > > > > the following does not work in PyQt 4.5.2: > > > > from PyQt4.QtCore import QRectF > > wrongRect = QRectF(0,0,0,3000) | QRectF(0,0,0,16) > > > > The expected result is (0,0,0,30

Re: [PyQt] Understanding QGridLayout colspan

2009-08-17 Thread David Boddie
On Mon Aug 17 13:54:04 BST 2009, Albert Cervera i Areny wrote: > With: > > python colspan.py 1 > > All three widgets are drawn with the same width. Which is right. But > starting with: > > python colspan.py 2 > > (and up) the first widget (which is assigned colspan="2") uses LESS space > than the

Re: [PyQt] image tool

2009-08-18 Thread David Boddie
On Tue Aug 18 09:18:33 BST 2009, vidyadhar wrote: > how should i scale the image to fit to the size of dock widget.? > i have used scaling in pixmap. > > here is my code > > self.edit_image=str(self.imagePath) > pic=QtGui.QPixmap(self.edit_image) > width=self.dockWidget_4.g

Re: [PyQt] image tool like paint

2009-08-18 Thread David Boddie
On Tue Aug 18 14:16:05 BST 2009, vidyadhar wrote: > i have no idea as how to go about for devloping an application similar to > paint the one in windows. the one which has a pen tool, eraser,shapes to > draw. I would like to use the tool to highlight an area on picture. > so anyone has any idea ho

Re: [PyQt] Fade effect a widget on top of another widget

2009-08-18 Thread David Boddie
On Tue Aug 18 16:47:42 BST 2009, Jason H wrote: > The fader widget is limited. Not only that, but the last time I built it against a current version of Qt it didn't work any more, at least not in the way I expected. :-/ > What you really want to do is create a parent > QWidget or QStackedWidget

Re: [PyQt] Fade effect a widget on top of another widget

2009-08-19 Thread David Boddie
On Wed Aug 19 08:46:12 BST 2009, Mailing List SVR wrote: > it is possible to have a short example with code? http://www.diotavelli.net/PyQtWiki/Fading Between Widgets David ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomput

Re: [PyQt] Fade effect a widget on top of another widget

2009-08-19 Thread David Boddie
On Wed Aug 19 14:30:00 BST 2009, Hans-Peter Jansen wrote: > Am Mittwoch, 19. August 2009 schrieb David Boddie: > > On Wed Aug 19 08:46:12 BST 2009, Mailing List SVR wrote: > > > it is possible to have a short example with code? > > > > http://www.diotavelli.net/P

Re: [PyQt] Sip iterator question

2009-08-25 Thread David Boddie
On Mon, 24 Aug 2009 13:08:44 +0200, Sebastien Petitdemange wrote: > Sébastien Petitdemange wrote: > > I try to create an iterator using python iterator protocol but I didn't > > succeed. [...] > > Data_HeaderContainer_itemIterator* __iter__(); > > %MethodCode > > sipRes = sipCpp; > > %End > > }

Re: [PyQt] Sip iterator question

2009-09-01 Thread David Boddie
On Tue Sep 1 13:01:14 BST 2009, Phil Thompson wrote: > Tonight's snapshot will have support for __iter__ and __next__. Cool. :-) > Note that it's __next__ (and not next) even for Python v2. Though, curiously, next() appears to work, which is why I didn't notice that. It's even in the tutorial:

Re: [PyQt] help

2009-09-02 Thread David Boddie
On Wed Sep 2 01:42:39 BST 2009, M.J. Bell wrote: > I believe that PyQt3 is not available for windows (is that right?) Not under a Free license, no. > and so I am trying to port the code to PyQt4. I have changed the library > names to reflect the different structure, but now I am getting the > fo

Re: [PyQt] A simple way to add another column to QComboBox?

2009-09-04 Thread David Boddie
On Thu Sep 3 22:00:52 BST 2009, Adam W. wrote: > I have a standard QComboBox displaying about 25 text based items right now, > left aligned. > What I want to do is display a bool status for the same items and have it > right aligned in the child list box (preferably display in the list view > only

Re: [PyQt] PyQt, GStreamer & gobject MainLoop

2009-09-04 Thread David Boddie
On Thu Sep 3 19:35:55 BST 2009, Baz Walter wrote: > Pedro Algarvio wrote: > > I've been google'ing to find some good examples on how to get PyQt and > > GStreamer's(gobject) main loops working together. > > it seems to be pretty straightforward. below is a simple audio player > adapted from some e

Re: [PyQt] A simple way to add another column to QComboBox?

2009-09-04 Thread David Boddie
On Fri Sep 4 22:52:39 BST 2009, Adam W. wrote: > I have also tried replacing the listview with a tableview, and have > not like the results too much. For instance, I could never figure out > how to hide the headers. In your example code the > "view.header().hide()" function returns AttributeErro

Re: [PyQt] QSql lastError() must be called BEFORE exec_() ??

2009-09-04 Thread David Boddie
On Fri Sep 4 21:23:32 BST 2009, Mario Daniel Carugno wrote: > Hi list, i'm coding my first PyQt4-Sql application, and i can't > understand a strange behavior. > I'll write a snippet of code with an erroneous Sql syntax, and i hope > then to catch the error > text and display it, in order to know w

Re: [PyQt] Adapting a QTableWidget to display an arbitrary QSqlQuery result set

2009-09-04 Thread David Boddie
On Fri Sep 4 19:54:29 BST 2009, Bernard Van Der Stichele wrote: > I have a simple app which allows the user to enter & execute select > queries against any arbitrary table/s in a database. I want to display the > results in a sortable grid, such as a QTableWidget. > The question is how do I go abo

Re: [PyQt] A simple question about signals and slots

2009-09-04 Thread David Boddie
On Sat Sep 5 01:42:59 BST 2009, William wrote: > But, if I generate an EVENT (sorry for the language sloppiness earlier) B, > it will go up to A and disappear, unless I propagate it down to the leaves > (which could be dangerous). So, the question is, whether or not there's a > common bus/dispat

Re: [PyQt] Is this possible using pyqt?

2009-09-07 Thread David Boddie
On Mon Sep 7 12:30:22 BST 2009, jim biri wrote: > Wonder if anyone can help. > I'm looking to build a simple command line appln that logs into a website > (following redirects, using SSL), and clicks on a download link to download > some files. Nothing fishy here, just looking to automate a mundan

Re: [PyQt] Re: Is this possible using pyqt?

2009-09-07 Thread David Boddie
On Mon Sep 7 15:53:57 BST 2009, jim biri wrote: > - re: PycURL: http://pycurl.sourceforge.net/ - wasn't totally sure it > could handle the plethora of form submissions, cookies and redirects > involved ... I guess it depends on what you're doing. Do you want to tell us more about what you're tryi

Re: [PyQt] dbus for win32

2009-09-10 Thread David Boddie
On Wed Sep 9 17:51:32 BST 2009, Jens Nie wrote: > I would like to use some dbus based functionality another application > offers within PyQt4 on windows and just realized that all the Qt DBus stuff > does not seem to be wrapped, so that the native dbus libraries need to be > used. Normally, you w

Re: [PyQt] resizable MDI in qteditor

2009-09-12 Thread David Boddie
On Sat Sep 12 19:34:21 BST 2009, giorgio.luciano wrote: > Is it possible to create a MDI resizable in qt editor ? > I put a mdi in the center of my main window, but when I maximize it, > nothing works :(. I guess I've tried to change all settings without any > results Is the MDI area in a layout

Re: [PyQt] Pop-Up

2009-09-13 Thread David Boddie
On Sun Sep 13 20:56:15 BST 2009, Marcus Tenório. wrote: > I search in the documentation and dont find it, i have a check box, and i > want to when i click in there, show me another window Connect the check box's clicked() signal to the other window's show() slot. David _

Re: [PyQt] resizable MDI in qteditor

2009-09-14 Thread David Boddie
On Mon Sep 14 16:03:16 BST 2009, Giorgio Luciano wrote: > I've put in a main window a mdi and two dock obj, > then arranged them with a grid, but it doesnt' seems to work > any help appreciated > there you can find all the code > > http://code.google.com/p/openchem/ The problem appears to be with

Re: [PyQt] Qt Assistant is not showing any help file

2009-09-15 Thread David Boddie
On Tue Sep 15 04:29:41 BST 2009, Gabriel Reis wrote: > Does anybody have an idea of what is happening or can tell me where can I > find more documentation about configuring Qt Assistant? Because I imagine > that something is misconfigurated, because the help files exists, they just > only aren't b

Re: [PyQt] DragNDrop on Microsoft Windows.

2009-09-18 Thread David Boddie
On Fri Sep 18 14:52:17 BST 2009, LIM Fung-Chai wrote: > Can anyone tell me how I can do a drag-and-drop tango between a PyQt > application and a non-Qt application on Microsoft Windows? I have seen > many drag&drop examples (and tested them), but they are between 2 PyQt > applications. For now,

Re: [PyQt] What am I doing wrong with QWidget?

2009-09-19 Thread David Boddie
On Sat Sep 19 19:27:06 BST 2009, Kurt Schwarz wrote: > I'm having problems displaying a widget as a child inside a window. The > code below should create a window that is 500 x 500 with a red box inside > 400 x 400. > > If I replace self.ChildWidget = AppWidget( self ) with self.ChildWidget = > Qt

Re: [PyQt] Callback.

2009-09-21 Thread David Boddie
On Mon Sep 21 15:57:22 BST 2009, Marcus Tenório. wrote: > anyone knows how todo a callback fuction in pyqt in a python code, i really > search, but i didnt find nothing, only a feel words from signal and slots. Can you say a little bit more about what you are trying to do? Then maybe we can make

Re: [PyQt] Changing the height of the QTabbar in QTabWidget

2009-09-21 Thread David Boddie
On Mon Sep 21 18:21:45 BST 2009, Chris Dunscombe wrote: > I would like the following: > > - > > | tab1 | tab2 | Lot of text | > | | | for tab3| > > - Maybe this code can be adapted to do what you want: http:/

Re: [PyQt] Model/View programming

2009-09-21 Thread David Boddie
On Mon, 21 Sep 2009 13:20:33 +0200, Lukas Hetzenecker wrote: > When I get a reply from the phone (some items) I don't know how to get the > parent QModelIndex for the directory (internal pointer). Currently I store > the index in my internal class and update it on every createIndex call - is > the

Re: [PyQt] QTableWidget: sorting floating point numbers

2009-09-24 Thread David Boddie
On Thu Sep 24 15:54:32 BST 2009, Bernard Van Der Stichele wrote: > I still havn't been able to figure out how to sort numbers in a > QTableWidget. Can anyone offer any pointers? I don't think it's possible to do this with a QTableWidget, but it's certainly possible to apply a proxy model to a mod

Re: [PyQt] Model/View programming

2009-09-24 Thread David Boddie
On Tue Sep 22 01:37:33 BST 2009, David Boddie wrote: > I tried running your test case and found that the view displayed various > items in an incomplete way - when you see trailing branches, it's a sure > sign that something isn't quite right. > > I'll try and take

Re: [PyQt] how can i add multiple corner widget like the one in houdini(check the screen shot)

2009-09-25 Thread David Boddie
On Fri Sep 25 09:29:20 BST 2009, tabish wrote: > how can i implement multiple cornerwidgets on the Qtabwidget. > plz check the screen shot for better idea about what i am asking > http://www.nabble.com/file/p25608367/houdini.png Could you highlight the part of the image you are referring to, plea

Re: [PyQt] QtWebKit to PDF rendering

2009-09-25 Thread David Boddie
On Wed Sep 23 19:21:31 BST 2009, Sundance wrote: > ... Also, might be a stupid question, but what happens if you use > QWebFrame.print() instead of .render()? This should produce something more acceptable for printing, though what you get depends on the style sheet. I couldn't say if there are c

Re: [PyQt] Mac OS X Problem: PyQT applications not focusing on launch

2009-09-28 Thread David Boddie
On Mon Sep 28 11:37:27 BST 2009, Holger Rapp wrote: > Am 25.09.2009 um 18:24 schrieb Alexei Puzikov: > > hello = HelloWorld() > > hello.show() > > hello.raise_() # this will raise the window on Mac OS X > > sys.exit(app.exec_()) > > This was a mighty useful advice. The internet doesn't seem to be a

<    1   2   3   4   5   6   7   8   >