Re: [PyQt] Designer issues, WYS-is not-WYG

2011-06-28 Thread Hans-Peter Jansen
On Tuesday 28 June 2011, 01:08:38 James Polk wrote: I like Designer and have been using it more and more... but I've been noticing that many times what you see in the Designer window ends up not matching when you run your program later. For example, small offsets in X and Y...look good in

Re: [PyQt] QString, QTextEdit and Encoding problem

2011-06-28 Thread Andreas Pakulat
On 28.06.11 08:37:06, Yaşar Arabacı wrote: Thanks for the info. Do you know any decent example, tutorial, documents etc. about qt network stack? There should be examples coming with PyQt, including a small chat-app. In addition look at http://doc.qt.nokia.com/4.7/qtnetwork.html and the check

Re: [PyQt] Designer issues, WYS-is not-WYG

2011-06-28 Thread David Boddie
On Tue, 28 Jun 2011 08:06:44 +0200, Hans-Peter Jansen wrote: On Tuesday 28 June 2011, 01:08:38 James Polk wrote: I often get positon offset weirdness using QFrames, QGroupBoxes,etc... They look good in Designer, then off in main program, so I have to make them look off in Designer, so

Re: [PyQt] QString, QTextEdit and Encoding problem

2011-06-28 Thread Yaşar Arabacı
Thanks. Appereantly package for my distro didn't include them so I downloaded original source files. 2011/6/28 Andreas Pakulat ap...@gmx.de On 28.06.11 08:37:06, Yaşar Arabacı wrote: Thanks for the info. Do you know any decent example, tutorial, documents etc. about qt network stack?

[PyQt] Python3 PyQt Resources bug

2011-06-28 Thread Algis Kabaila
Hi, Attempting to move to Python3 turned up a problem with resource compilation and/or installation into program. In my multi-partition box there are two kubuntu 11.04 natty os's. Their names according to the desktop images are Red Leaves for Python3 Winter Swans for Python2 The same small

Re: [PyQt] Designer issues, WYS-is not-WYG

2011-06-28 Thread James Polk
Thanks for the responses,... I'll send an example UI later today, but I do use Layouts...of all kinds.. I'll take a look at the tutorials, but I doubt it'll address what I'm seeing,.. which appears to me to be more of a versioning issue...or a difference between Python and C/C++

Re: [PyQt] Designer issues, WYS-is not-WYG

2011-06-28 Thread Algis Kabaila
On Wed, 29 Jun 2011 12:20:25 AM James Polk wrote: Thanks for the responses,... I'll send an example UI later today, but I do use Layouts...of all kinds.. I'll take a look at the tutorials, but I doubt it'll address what I'm seeing,.. which appears to me to be more of a versioning

[PyQt] QLineEdit vs. menu keyboard shortcuts

2011-06-28 Thread Nathan Weston
QLineEdit has some keyboard shortcuts (e.g. Ctrl+Z for Undo) that clash with the shortcuts for QActions in my application menus. When a QLineEdit has keyboard focus, it intercepts these shortcuts and my QActions are never triggered. I'd like to give application-level shortcuts precedence over

Re: [PyQt] Python3 PyQt Resources bug

2011-06-28 Thread Phil Thompson
On Tue, 28 Jun 2011 21:53:21 +1000, Algis Kabaila akaba...@pcug.org.au wrote: Hi, Attempting to move to Python3 turned up a problem with resource compilation and/or installation into program. In my multi-partition box there are two kubuntu 11.04 natty os's. Their names according to the

Re: [PyQt] Designer issues, WYS-is not-WYG

2011-06-28 Thread James Polk
Ahhh!I found the problem I was narrowing down my code to a send a more simpler example UI,.. I deleted a bunch of stuff, and voila it worked,going back and analyzing step-by-step,...setting the app style is the culprit... Specifically, --   app.setStyle(Plastique) I'm

Re: [PyQt] QLineEdit vs. menu keyboard shortcuts

2011-06-28 Thread Nathan Weston
On 6/28/2011 1:48 PM, Baz Walter wrote: On 28/06/11 16:50, Nathan Weston wrote: QLineEdit has some keyboard shortcuts (e.g. Ctrl+Z for Undo) that clash with the shortcuts for QActions in my application menus. When a QLineEdit has keyboard focus, it intercepts these shortcuts and my QActions are

Re: [PyQt] QLineEdit vs. menu keyboard shortcuts

2011-06-28 Thread Hans-Peter Jansen
On Tuesday 28 June 2011, 19:56:35 Nathan Weston wrote: On 6/28/2011 1:48 PM, Baz Walter wrote: On 28/06/11 16:50, Nathan Weston wrote: QLineEdit has some keyboard shortcuts (e.g. Ctrl+Z for Undo) that clash with the shortcuts for QActions in my application menus. When a QLineEdit has

Re: [PyQt] QLineEdit vs. menu keyboard shortcuts

2011-06-28 Thread Baz Walter
On 28/06/11 19:17, Hans-Peter Jansen wrote: On Tuesday 28 June 2011, 19:56:35 Nathan Weston wrote: In the latter mode, the widget is temporarily set as non-editable, so its built-in Undo behavior doesn't work at all (but it still eats the keyboard event!). If you're subclassing QLineEdit

Re: [PyQt] QLineEdit vs. menu keyboard shortcuts

2011-06-28 Thread Baz Walter
On 28/06/11 19:28, Yaşar Arabacı wrote: On 28/06/11 19:17, Hans-Peter Jansen wrote: On Tuesday 28 June 2011, 19:56:35 Nathan Weston wrote: In the latter mode, the widget is temporarily set as non-editable, so its built-in Undo behavior doesn't work at all (but it still eats the keyboard

Re: [PyQt] Inter-office distribution/installation of packages/modules

2011-06-28 Thread Erik Janssens
that's interesting, how do you handle the auto update with py2exe ? which part of the app gets updated ? On Fri, Jun 17, 2011 at 12:58 AM, Demetrius Cassidy dcassid...@gmail.com wrote: We have an app which must be redistributed to multiple groups, with 40+ users and py2exe is the reason we are

[PyQt] QPainter::end: Painter ended with 2 saved states

2011-06-28 Thread Eric Frederich
I was trying to get an example working with a QThread. I wound up creating one but after running it for a while and pressing buttons I got the error... QPainter::end: Painter ended with 2 saved states Am I doing something wrong? I wanted an example where a worker thread would query a database or

Re: [PyQt] QPainter::end: Painter ended with 2 saved states

2011-06-28 Thread Hans-Peter Jansen
On Tuesday 28 June 2011, 20:52:12 Eric Frederich wrote: I was trying to get an example working with a QThread. I wound up creating one but after running it for a while and pressing buttons I got the error... QPainter::end: Painter ended with 2 saved states Am I doing something wrong? I

Re: [PyQt] QPainter::end: Painter ended with 2 saved states

2011-06-28 Thread Eric Frederich
Here is a reworked example. Do you see any potential problems with this one? Is the call to setText okay? Is it okay to access the data member the way I'm doing it in print_data? Thanks, ~Eric from PyQt4.QtCore import * from PyQt4.QtGui import * class Blah(QThread): def __init__(self,

Re: [PyQt] Python3 PyQt Resources bug

2011-06-28 Thread Algis Kabaila
On Wed, 29 Jun 2011 02:52:08 AM Phil Thompson wrote: On Tue, 28 Jun 2011 21:53:21 +1000, Algis Kabaila akaba...@pcug.org.au wrote: Hi, Attempting to move to Python3 turned up a problem with resource compilation and/or installation into program. In my multi-partition box there are