Re: [PyQt] S/w Packaging & Distribution

2013-03-20 Thread Doug Bell
Pietro Moras wrote: > -- I've got and installed “cx_Freeze”. No primer, no example of use, > therefore I haven't been yet capable of breaking ice, that is learning > how to use it, so far. cx_Freeze works well for me - it's the only solution I've found that works with Python3. There is a sample s

Re: [PyQt] subtel problem with event handler when disconnect - reconnect the event from within the handler AND display QMsgbox ?

2011-10-12 Thread Doug Bell
Grégory Starck wrote: > Hi dear list, > > on windows7-64, with python32 (and also with python27) (-x86) and > pyqt-4.8.5-1: > > First of all: I'm quite new with Qt (pyqt).. and so I don't know all > of it, even more specifically about the restrictions/exceptions/etc.., > from far. > > in a quite

Re: [PyQt] Dilemma: Pqt or wxpython

2011-04-08 Thread Doug Bell
col speed wrote: > Hi, > I'm a newbie that has been learning python for the last 3 > years(between work, family and beer). I would like to learn GUI > programming and I have looked at pqt and wx. I am obviously not asking > which, but why? Why would you recommend PyQt as against wx? Several years

Re: [PyQt] animating, rotating UI layouts,elements,etc

2011-01-01 Thread Doug Bell
James Polk wrote: > > I have to create a sorta' 1-2-3 menu process for users... > Thought about doing something fancy, like rotating entire layouts > in and out of main window...or maybe animating (probably translation) > them, etc...It appears that PyQt supports animating gifs, but > what about a

[PyQt] Garbage collection issue?

2010-11-19 Thread Doug Bell
Hi, When exiting my PyQt application, I get the following error message: QObject::startTimer: QTimer can only be used with threads started with QThread The strange thing is that my application is single-threaded and doesn't contain any QTimers. The error seems to be related to garbage colle

Re: [PyQt] How do i get persistentEditor's close event?

2010-10-15 Thread Doug Bell
ss if you really need access to the close event. - Doug > Doug Bell-3 wrote: > > > > akumarzen wrote: > >> > >> How to close persistentEditors? > > > > QAbstractItemView.closePersistentEditor(index) > > > > - Doug

Re: [PyQt] How to close persistentEditors?

2010-10-15 Thread Doug Bell
akumarzen wrote: > > How to close persistentEditors? QAbstractItemView.closePersistentEditor(index) - Doug ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] timers from mainwindow

2010-09-14 Thread Doug Bell
Sebastian Elsner wrote: > I would like to start a QTimer from a mainwindow's menu, creating a > new instance of a custom class. See the example below. All works > except the timer's callback is never called. Asking if the timer is > active returns True. I ran out of ideas. Maybe I misunderstand how

Re: [PyQt] waht`s wrong with qstring

2010-09-01 Thread Doug Bell
king011a wrote: > Hi > My development eviroment: > os: windows xp > python: python-3.1.2.msi > pyqt: PyQt-Py3.1-gpl-4.7.4-1.exe > code: > import sysfrom PyQt4 import QtCore, QtGuiapp = > QtGui.QApplication(sys.argv)s = QtCore.QString()sys.exit(app.exec_()) > It always show me > in

Re: [PyQt] Get Signals from all buttons in the form

2010-07-19 Thread Doug Bell
starglider develop wrote: > Hi, > I have a form with 12 QPushButtons and need to connect the signals to the > corresponding button pressed without have to use the usual > self.connect(obj,SIGNAL(),self.function), because I don't khow many buttons > where made. Read the documentation for QButtonGr

Re: [PyQt] Can QCheckBox state be set without triggering stateChanged?

2010-04-20 Thread Doug Bell
Eric Coetzee wrote: > Hi, > > I have a situation where I want to set the state of a checkbox while > inside the method that handles the stateChanged event. But I don't > want QCheckBox.stateChanged(state) to be triggered again. > > Can this be done? Yes, just do: checkbox.blockSignals(True)

Re: [PyQt] help with this question

2010-04-05 Thread Doug Bell
Rafael Lemus wrote: > Hello, > > I've been wondering if there is a pyqt method that can tell me which was > the widget that sent a signal, this is because I want, that whenever a > QPushButton is > clicked it sends me to a method and in this method I could compare > which button send me a sign

Re: [PyQt] Limit the height of a Layout

2010-03-03 Thread Doug Bell
starglider develop wrote: > Thank you for your replay, but I'm doing everything by code, > I try to simulate a form with QtDesigner but the genereted code is a mess. Have you tried QWidget.setMaximumHeight(int) ? Doug > On 3 March 2010 01:37, wrote: > > > Are you using QtDesigner? You can set

Re: [PyQt] Sudoku Grid - Recommended Approaches

2010-02-04 Thread Doug Bell
Kareem Yusuf wrote: > I'm looking for some advice on the best way to implement a sudoku grid using > PyQt. I am new to PyQt and Python so my following thoughts are shaped by > other language experiences (c# and Java). > > >1. I am assuming using a TableWidget is a bad idea, my experience has

Re: [PyQt] ImportError with v4.7 Windows Binary

2010-01-25 Thread Doug Bell
Phil Thompson wrote: > On Fri, 22 Jan 2010 10:12:37 -0500, Doug Bell wrote: > > Phil Thompson wrote: > >> On Fri, 22 Jan 2010 10:00:13 -0500, Doug Bell wrote: > >> > Phil Thompson wrote: > >> >> On Fri, 22 Jan 2010 09:03:53 -0500, Doug Bell

Re: [PyQt] ImportError with v4.7 Windows Binary

2010-01-22 Thread Doug Bell
INADA Naoki wrote: > I got it. > > I install PyQt 4.7 without uninstalling PyQt 4.6. > So old dlls are in site-packages/PyQt4/ > They blocks importing PyQt4.QtGui. That isn't the problem in my case. I deleted the entire site-packages/PyQt4 directory before installing 4.7. Doug _

Re: [PyQt] ImportError with v4.7 Windows Binary

2010-01-22 Thread Doug Bell
Phil Thompson wrote: > On Fri, 22 Jan 2010 10:00:13 -0500, Doug Bell wrote: > > Phil Thompson wrote: > >> On Fri, 22 Jan 2010 09:03:53 -0500, Doug Bell wrote: > >> > Hi, > >> > > >> > I installed PyQt 4.7 with the new Windows installer. Wh

Re: [PyQt] ImportError with v4.7 Windows Binary

2010-01-22 Thread Doug Bell
INADA Naoki wrote: > I caught a same problem. > And I fixed the problem by this: > > cd c:\Python2.6\Lib\site-package\PyQt4 > copy bin\QtCore4.dll . > copy bin\QtGui4.dll . That workaround works for me, as well. I also had to copy the QtNetwork4.dll when using a program that requires it. Doug _

Re: [PyQt] ImportError with v4.7 Windows Binary

2010-01-22 Thread Doug Bell
Tim Golden wrote: > On 22/01/2010 14:03, Doug Bell wrote: > >Hi, > > > >I installed PyQt 4.7 with the new Windows installer. When trying to use > >it, I get the following error: > > > >C:\Misc>python > >Python 2.6.4 (r264:75708, Oct 26 2009, 08:23

Re: [PyQt] ImportError with v4.7 Windows Binary

2010-01-22 Thread Doug Bell
Phil Thompson wrote: > On Fri, 22 Jan 2010 09:03:53 -0500, Doug Bell wrote: > > Hi, > > > > I installed PyQt 4.7 with the new Windows installer. When trying to use > > it, I get the following error: > > > > C:\Misc>python > > Python 2.6.4 (r264:

[PyQt] ImportError with v4.7 Windows Binary

2010-01-22 Thread Doug Bell
Hi, I installed PyQt 4.7 with the new Windows installer. When trying to use it, I get the following error: C:\Misc>python Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> from PyQt4 im

[PyQt] PyQt 4.6 QClipboard bug?

2009-10-08 Thread Doug Bell
Hi, In previous PyQt versions, the QClipboard.text() method accepted a Python string as an argument: QtGui.QApplication.clipboard().text('xml') With PyQt 4.6, this throws an exception: TypeError: argument 1 of QClipboard.text() has an invalid type But it seems to work OK with a QString

Re: [PyQt] QTreeWidget itemAt question

2009-07-21 Thread Doug Bell
Scott Frankel wrote: > > Hello, > > What's the proper way to use QTreeWidget's itemAt() method? I'm > passing incrementing int values to it, yet it only returns the > tree's root item. eg: > > for ii in range(self.treeRowCount): > item = self.theTree.it

[PyQt] Ubuntu issue?

2009-05-04 Thread Doug Bell
Hi, A user of one of my PyQt programs reported a "Bus error" when trying to run it on Ubuntu 9.04. He gets the same error with the example programs that come with PyQt4. Does anyone know of an issue with Ubuntu's PyQt packages? Thanks, Doug. ___ PyQt

Re: [PyQt] ContextMenu for a TreeView

2009-02-16 Thread Doug Bell
projet...@club-internet.fr wrote: > Hello, > is it possible to define a ContextMenu for a TreeView ? Yes, just override QWidget.contextMenuEvent for the view. Doug. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/m

Re: [PyQt] i18n

2009-02-11 Thread Doug Bell
Kovid Goyal wrote: > On Wednesday 11 February 2009 12:06:13 Doug Bell wrote: > > I like that idea in general, but how do you deal with translations of > > strings that are internal to Qt (in file dialogs, etc.)? > > Qt provides .mo files with translations of all the inter

Re: [PyQt] i18n

2009-02-11 Thread Doug Bell
Kovid Goyal wrote: > Ditch the whole Qt translation infrastructure. Simply postprocess the > output of pyuic4 to replace the calls to > QtCore.QCoreApplication.translate() with _() > > Then you can use gettext and the nice translation infrastructure in > launchpad. This has the additional advanta

Re: [PyQt] i18n

2009-02-11 Thread Doug Bell
Giovanni Bajo wrote: > On 2/11/2009 5:58 PM, Doug Bell wrote: >> Frédéric wrote: >>> On mercredi 11 février 2009, Doug Bell wrote: >>> >>>>> Are there some tips, for example, to bind the _() method I use with >>>>> gettext and PyGTK? Som

Re: [PyQt] i18n

2009-02-11 Thread Doug Bell
Frédéric wrote: > On mercredi 11 février 2009, Doug Bell wrote: > > > > Are there some tips, for example, to bind the _() method I use with > > > gettext and PyGTK? Something to help me migrate my code without having > > > to modify it everywhere... > >

Re: [PyQt] i18n

2009-02-11 Thread Doug Bell
Frédéric wrote: > Does anybody could point me on example how to use i18n in PyQt? > > Riverbank documentation says that one should not use tr() method, but > insteead QtCore.QCoreApplication.translate(). As the object must be > passed to this method, this not improves the readability :o/ > > Are

Re: [PyQt] Dialog behaves as a window

2009-01-19 Thread Doug Bell
Frédéric wrote: > With PyGTK, from glade, it is possible to choose the behaviour of a dialog, > so it is managed as the main window. > > Depending of the window manager, it has more or less effects. For example, > under KDE, it is not created over the main window, but side by side (if > there i

Re: [PyQt] Force the ratio of a widget

2009-01-14 Thread Doug Bell
Frédéric wrote: > > Hello, > > I have a frame with 5 buttons in cross. I want this frame always be > square while resizing the window. This frame is in a horizontal layout, > and does not expand. So, it is always at its minimum width. But its > height can increase, leading to non-square ratio. >

Re: [PyQt] Updated Windows GPL Installer Snapshot

2008-10-28 Thread Doug Bell
Phil Thompson wrote: > On Mon, 27 Oct 2008 07:04:29 -0400, Doug Bell <[EMAIL PROTECTED]> wrote: > > Phil Thompson wrote: > >> I've updated the snapshot of the Windows installer for Python v2.6. > >> > >> I'd be interested in feedback from th

Re: [PyQt] Updated Windows GPL Installer Snapshot

2008-10-27 Thread Doug Bell
Phil Thompson wrote: > On Mon, 27 Oct 2008 08:33:42 -0400, Doug Bell <[EMAIL PROTECTED]> wrote: > > Phil Thompson wrote: > >> On Mon, 27 Oct 2008 07:04:29 -0400, Doug Bell <[EMAIL PROTECTED]> wrote: > >> > Phil Thompson wrote: > >> >> I&#x

Re: [PyQt] Updated Windows GPL Installer Snapshot

2008-10-27 Thread Doug Bell
Phil Thompson wrote: > On Mon, 27 Oct 2008 07:04:29 -0400, Doug Bell <[EMAIL PROTECTED]> wrote: > > Phil Thompson wrote: > >> I've updated the snapshot of the Windows installer for Python v2.6. > >> > >> I'd be interested in feedback from th

Re: [PyQt] Updated Windows GPL Installer Snapshot

2008-10-27 Thread Doug Bell
Phil Thompson wrote: > I've updated the snapshot of the Windows installer for Python v2.6. > > I'd be interested in feedback from those who have Python installed in a > non-standard directory and/or non-administrator installs. I have both, of course. The installer ran without reporting any error

Re: [PyQt] jpeg plugin not loading

2008-10-23 Thread Doug Bell
Phil Thompson wrote: > On Thu, 23 Oct 2008 07:17:18 -0400, Doug Bell <[EMAIL PROTECTED]> wrote: > > Phil Thompson wrote: > >> On Thu, 16 Oct 2008 08:02:11 -0400, Doug Bell <[EMAIL PROTECTED]> wrote: > >> > Hi, > >> > > >> &

Re: [PyQt] jpeg plugin not loading

2008-10-23 Thread Doug Bell
Phil Thompson wrote: > On Thu, 16 Oct 2008 08:02:11 -0400, Doug Bell <[EMAIL PROTECTED]> wrote: > > Hi, > > > > The plugin for jpeg image support is not loading on my windows > > installation of PyQt (from the 4.4.3-1 binary installer). Jpeg images > > d

[PyQt] jpeg plugin not loading

2008-10-16 Thread Doug Bell
Hi, The plugin for jpeg image support is not loading on my windows installation of PyQt (from the 4.4.3-1 binary installer). Jpeg images don't show up in a QTextBrowser and jpeg isn't listed as one of the supported formats in QImageReader.supportedImageFormats(). This works fine on Linux and on

Re: [PyQt] Re: PyQt4 and Python 3.0

2008-10-07 Thread Doug Bell
Phil Thompson wrote: > On Tue, 07 Oct 2008 00:29:12 -0700, Glenn Linderman > <[EMAIL PROTECTED]> wrote: > > On approximately 10/6/2008 10:07 PM, came the following characters > > from the keyboard of Phil Thompson: > >> On Mon, 6 Oct 2008 21:30:49 -0500, "Arthur Pemberton" > >> <[EMAIL PROTECTED]>

Re: [PyQt] Re: PyQt4 and Python 3.0

2008-10-06 Thread Doug Bell
Giovanni Bajo wrote: > On 10/6/2008 7:27 PM, Joshua Kugler wrote: >> Phil Thompson wrote: >> >>> On Fri, 3 Oct 2008 17:11:19 +0200, Detlev Offenbach >>> <[EMAIL PROTECTED]> wrote: Hi, will there be PyQt4 support for Python 3.0 once it goes final? >>> Not straight away. I will take th

Re: [PyQt] QDialog window buttons

2008-09-12 Thread Doug Bell
Scott Frankel wrote: > Is there a flag, property, or hint that can be invoked on a QDialog to > have it display its window's dismiss/minimize/maximize buttons? setWindowFlags(QtCore.Qt.Window) (inherited from QWidget) Doug. ___ PyQt mailing listP

Re: [PyQt] treeview model/view or item-based?

2008-05-05 Thread Doug Bell
Ulrich wrote: > The tree has 3 to 4 levels. Let's say the first level contains 30 items, > the second level 2000 and the third contains 7000 "folders". The last > level contains 50,000 items. > > I thought it would be a good idea (?) to store the data in a database > like SQLite, because this

Re: [PyQT] QDialog with only one button

2008-02-25 Thread Doug Bell
Alexandre Badez wrote: > Hy, > > I would like to display a message to my users with a QDialog with only > a 'ok' button. > But I didn't found any option about this in the QDialog class. > > Any idea ? Try QMessageBox. Doug. ___ PyQt mailing listPy

Re: [PyQt] PyQt4 - Py2exe - Missing DLLs problem

2008-02-01 Thread Doug Bell
Michael Towers wrote: > Angel Leon wrote: >> Hi, >> >> In the past I'd build a py2exe distributable of my app, and the >> py2exe would be missing for some reason Qt4svg.dll, I'd then manually >> copy the dll, and my app would launch. >> >> does anyone have a similar problem? do you solve it b

Re: [PyQt] Proposal for New-style Signals

2008-01-24 Thread Doug Bell
Hans-Peter Jansen wrote: > Am Donnerstag, 24. Januar 2008 schrieb Doug Bell: > > Of the 13 overloaded signals, how many have "int" and "const QString&" > > choices? That seems to be the most common overload - giving either an > > item's index or

Re: [PyQt] Proposal for New-style Signals

2008-01-24 Thread Doug Bell
Phil Thompson wrote: > On Thursday 24 January 2008, Doug Bell wrote: > > Of the 13 overloaded signals, how many have "int" and "const QString&" > > choices? > > 11 might be squeezed into that category but only with a more complicated > categor

Re: [PyQt] Proposal for New-style Signals

2008-01-24 Thread Doug Bell
Phil Thompson wrote: > About 4% of signals are overloaded. I think your point would be an issue if > that proportion was significantly higher, ie. if a newbie would be likely to > come across both short and long forms in, say, the tutorials. > > Of the overloaded signals, none of the overloads a

Re: [PyQt] Beginners - signal - slots - question

2007-12-21 Thread Doug Bell
Jochen Georges wrote: > Hello, > > i finished my first "Hello-World"-PyQt-program sucessfully, > but not my second. > > I googled for an example, but did not find any, so maybe you can give me a > hint. > > There is a QLineEdit-element and a QLabel-element. > When te user finished editing the

Re: [PyQt] QListWidget SIGNAL problem

2007-12-10 Thread Doug Bell
Linos wrote: > > Hello, i have a problem with a listwidget i have created inside a > > QToolBox page, if doesnt emit signals, i can select the items but it > > doesnt emit itemDoubleClicked or itemClicked or itemActivated, i > > have tried with mouse and keyboard without luck, i have installed an >

Re: [PyQt] Problems with stylesheets.

2007-12-04 Thread Doug Bell
I don't usually jump into these things, but... Gustavo A. D?az wrote: > > > And for the second... I don't provide a example code? lol.. you are > > > blind then... > > > > Please read carefully: I talked about a [minimal] self contained example. > > You seem to expect us to add the missing pieces

Re: [PyQt] multiple dialog boxes simultaneously

2007-12-03 Thread Doug Bell
Pradnyesh Sawant wrote: > Thanks for replying; coz this problem has been bugging me for quite some > time now... > On 06:17, 30 Nov, Doug Bell wrote: > > Pradnyesh Sawant wrote: > > > > Since you aren't keeping a refernce to QTimer or giving it an explicit Qt &

Re: [PyQt] multiple dialog boxes simultaneously

2007-12-03 Thread Doug Bell
Pradnyesh Sawant wrote: > Hello, > I have 2 new doubts, related to the same problem. As suggested by Oleg, I'm > now going on creating new dialogs as I require. I'll first give an overview > of the code: > > *** > from time im

Re: [PyQt] PyQt apps deployment under Windows

2007-05-21 Thread Doug Bell
Nahuel Defossé wrote: > Hi! > I was, acctually i _am_ wondering if is possible to easily deploy pyqt apps > (speaking of GLP'd apps) under Windows? > Maybe a NSIS? Maybe another installer solution... I've successfully used a combination of py2exe and NSIS, See for an

Re: [PyQt] how to get text from QTextEdit document

2007-04-25 Thread Doug Bell
Paulino wrote: > Hi, > > I want to get the text from a QTextEdit widget into a list, to parse and > store in a database > > I found this solution, but I think there is a cleaner way of doing it > > >def Imprimir(self): >doc = self.texto.document() >block = doc.begin() >

Re: [PyKDE] changing background color of QTextEdit/QLineEdit

2007-01-16 Thread Doug Bell
Doug Bell wrote: > Steven James Samuel Stapleton wrote: > > I fiddle with this and got it working for the most part, thanks for the > > info. > > > > However, I have found one thing where it doesn't work: QTextEdit objects > > don't seem to follow the

Re: [PyKDE] changing background color of QTextEdit/QLineEdit

2007-01-16 Thread Doug Bell
Steven James Samuel Stapleton wrote: > I fiddle with this and got it working for the most part, thanks for the > info. > > However, I have found one thing where it doesn't work: QTextEdit objects > don't seem to follow the palette setup. I have the same code for the > TextEdits and the LineEdit

Re: [PyKDE] changing background color of QTextEdit/QLineEdit

2007-01-15 Thread Doug Bell
Steven James Samuel Stapleton wrote: > I have severa QTextEdits and QLineEdits in my application, and I want to > make them more friendly for the user. > > (1) I would like to slightly alter the color of the focused edit object > (it's very helpful for visually impared users such as myself). > (

[PyKDE] Problem with QPainter.drawText() flags

2006-10-26 Thread Doug Bell
Hi - In Qt4, the QPainter.drawText() variants that use a rectangle also have a flags parameter. According to the Qt4 documentation, the flags parameter can be an OR combination of Qt.AlignmentFlag and Qt.TextFlag. In PyQt 4.01, the drawText() function works fine with a combination of alignment f

Re: [PyKDE] Re: Qt3 Clipboard Problem

2006-09-12 Thread Doug Bell
Toby Dickenson wrote: > Doug Bell wrote: > > > Hi, > > > > My application uses QClipboard's setText function (not in selection > > mode) for copied text. It works fine while the app is running, but the > > clipboard is always empty after exiting the ap

[PyKDE] Qt3 Clipboard Problem

2006-09-12 Thread Doug Bell
Hi, My application uses QClipboard's setText function (not in selection mode) for copied text. It works fine while the app is running, but the clipboard is always empty after exiting the application. This occurs on both Linux (PyQt 3.16 and Qt 3.3.6) and Windows (Qt 2.3). Any ideas? Is some so

[PyKDE] Qt4 QClipboard & QMimeData problem

2006-09-04 Thread Doug Bell
Hi, I'm having another problem with QClipboard, this time when using QMimeData. I don't know whether there is any connection between this and my previously reported (and still unsolved) problem with the QClipboard.dataChanged() signal. The current issue is that QClipboard does not seem to take p

Re: [PyKDE] QClipboard Problem

2006-08-21 Thread Doug Bell
Phil Thompson wrote: > On Tuesday 25 July 2006 12:12 pm, Doug Bell wrote: > > Hi - > > > > I'm having problems with QClipboard's dataChanged() signal in PyQt4 on > > Windows. It works fine during program execution, but the program > > crashes at exi

Re: [PyKDE] QClipboard Problem

2006-07-26 Thread Doug Bell
Doug Bell wrote: > Hi - > > I'm having problems with QClipboard's dataChanged() signal in PyQt4 on > Windows. It works fine during program execution, but the program > crashes at exit if the contents of the clipboard had been changed with > the signal connected. >

[PyKDE] QClipboard Problem

2006-07-25 Thread Doug Bell
Hi - I'm having problems with QClipboard's dataChanged() signal in PyQt4 on Windows. It works fine during program execution, but the program crashes at exit if the contents of the clipboard had been changed with the signal connected. I'm not sure whether this is a bug in PyQt or Qt, but, since I

Re: [PyKDE] PyQt4 windows /mingw

2006-04-27 Thread Doug Bell
Phil Thompson wrote: > On Wednesday 26 April 2006 10:17 pm, Emanuele Santos wrote: > > Hi Phil > > I'm using the latest snapshot of PyQt4 and it seems that the > > installation is broken on window with mingw. > > I think mingw32-make doesn't work correctly with the Makefile: > > > > Determining the

Re: [PyKDE] What little detail am I missing?

2006-02-09 Thread Doug Bell
Tina Isaksen wrote: > Ok, an even simpler thing: Take the innput and print it in a terminal. > And I can't even do that so I must be missing something so basic that > it's probably redicilous. I have read examples, webpages etc and I just > don't get it!!! :( Tina, I think you're taking on too

[PyKDE] PyQt4 QStringList (again)

2006-01-26 Thread Doug Bell
Hi, I didn't get any replies to my earlier message about QStringList in PyQt4, but maybe it wasn't clear. So I'll try again. In the example programs, QStringLists are created using stream operators: s = QtCore.QStringList() s << 'String 1' << 'String 2' This method works, but it isn't ve

[PyKDE] PyQt4 X BadWindow Error

2006-01-22 Thread Doug Bell
Hi, I have a PyQt4 program that writes the following error message to the console when it exits (the id and serail numbers vary): X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 18 (X_ChangeProperty) Resource id in failed request: 0x1200

[PyKDE] PyQt4 QStringList

2006-01-14 Thread Doug Bell
Hi, I've noticed that the use of QStringList is more common in Qt4. But using the C++ stream operators to initialize a it doesn't seem very Pythonic. Would it be possible to allow the QStringList constructor to automatically convert from a Python list of strings? Or am I missing an easier way t

[PyKDE] PyQt4 Menu Seg Fault

2006-01-12 Thread Doug Bell
Hi - Menus in PyQt4 work fine when a separate action is created and assigned to a menu item, but there is a problem when defining the action within an overloaded QMenu.addAction() method. The menu gets created but then gives a segmentation fault when the menu item is actuated. I've attached a sh

Re: [PyKDE] QString in PyQt4 - Request for Comments

2005-10-21 Thread Doug Bell
Giovanni Bajo wrote: > Phil Thompson <[EMAIL PROTECTED]> wrote: > > > I'm completely open to making the existing API more Pythonic - this is the > > time to do it. For example, I did casually float the idea of not using C++ > > types in signal signatures in a previous post - but nobody bit. > > I

[PyKDE] Attribute Error

2005-09-30 Thread Doug Bell
Hi, A user of my TreeLine program has reported a problem when a particular dialog is opened. Here's the traceback: Traceback (most recent call last): File "/opt/.stow/treeline-0.13.0/lib/treeline/treedialogs.py", line 504, in modifyIcon dlg = IconSelectDlg(self.currentType, self, None, Tru

[PyKDE] SIP v4.2rc2 Bug???

2005-02-13 Thread Doug Bell
Hi, I'm not sure if this is a bug, but it is at least a difference in behavior between sip-4.1.1 and the 4.2rc2. With PyQt compiled against sip-4.1.1, the function QMainWindow.moveToolBar(dockWindow, qDock) is happy with an integer as the 2nd argument. This works out well for restoring a dock, b

Re: [PyKDE] Funding Qt4 port

2005-02-08 Thread Doug Bell
Knut Morten Johansson wrote: > As for releasing GPL'd projects on Win32 this is already possible, using PyQt > and the GPL port of Qt-X11 to windows. This is based on Qt 3, and my > impresion is that it's already in a usable state. This has one major > advantage as it works now, not like Qt 4 wh

[PyKDE] Qt/Windows announcement

2005-02-07 Thread Doug Bell
Hi All, For those of you jumping through hoops to do Windows ports of free software, here's some good news: and Doug. ___

Re: [PyKDE] QTextBrowser: no mimesource for

2004-03-30 Thread Doug Bell
[EMAIL PROTECTED] wrote: > Hello > > I want show html file (from internet and local filesystem) in my PyQT > application. > QTextBrowser-Widget should do it. > > When i load (setSource) a html i get always: > "QTextBrowser: no mimesource for x.html" > and a blank Textbrowser. Your example

Re: [PyKDE] PyQt 3.11 Drag & Drop problem

2004-03-17 Thread Doug Bell
Phil Thompson wrote: > On Wednesday 17 March 2004 13:28, Doug Bell wrote: > > A user of one of my programs is getting an exception under PyQt 3.11 > > (with Qt 3.2.1) that did not occur under earlier versions. > > > > It happens when beginning a drag in a QListView. The

[PyKDE] PyQt 3.11 Drag & Drop problem

2004-03-17 Thread Doug Bell
A user of one of my programs is getting an exception under PyQt 3.11 (with Qt 3.2.1) that did not occur under earlier versions. It happens when beginning a drag in a QListView. The contentsDragEnterEvent(self, event) method seems to be sending a plain QEvent instead of a QDragEnterEvent. As a

Re: [PyKDE] who is building pyqt based on qt3.2.1 non-commercial version?

2004-02-17 Thread Doug Bell
Phil Thompson wrote: > On Friday 30 January 2004 5:20 pm, Shunming Fang wrote: > > Hello,Guys, > > Do your guys know when the latest pyqtwill include qt3.2.1 non commercial > > version. I already got the qt boook plus qt3.2.1 non commercial version. > > No decision has yet been made as to whethe

Re: [PyKDE] sips installation problem ...

2004-02-13 Thread Doug Bell
Jim Bublitz wrote: > On Friday February 13 2004 07:05, hcohen2 wrote: > > Jim Bublitz wrote: > > >Looks like you need to do: > > > >export QTDIR= > > > >On SuSE is /usr/lib/qt3 - should be > > > something similar on other distributions. > > > You got that correct-it's the same on Mandrake 9.1,

Re: [PyKDE] who is building pyqt based on qt3.2.1 non-commercial version?

2004-02-01 Thread Doug Bell
> On Friday 30 January 2004 5:20 pm, Shunming Fang wrote: > > Hello,Guys, > > Do your guys know when the latest pyqt will include qt3.2.1 non commercial > > version. I already got the qt book plus qt3.2.1 non commercial version. > Phil Thompson wrote: > No decision has yet been made as to whethe

Re: [PyKDE] QLCDNumber color/style

2003-09-18 Thread Doug Bell
Tony Cappellini wrote: > Would someone point me to an example on how to change the look of a > QLCDNumber widget ? I would like to change the color, and perhaps > make it bold, or just easier to read. The grey is hard to see at a > distance. > > Is it even possible to change the colors on this w

[PyKDE] Red Hat unicode problem

2003-08-14 Thread Doug Bell
A few users of my TreeLine program have had problems with the display of unicode in text edit and list view widgets. All are using Red Hat (various versions). The latest occurrance is using Red Hat 9 with Python 2.2.2, Qt 3.1.1 and PyQt 3.5, all from RPM's. The text gets spaced out in the widget