Re: [PyQt] stdin processing

2007-11-07 Thread Tom Dossis
On 07/11/2007, at 2:08 AM, Vladimir Pouzanov wrote: Is there any way to read stdin line by line without blocking? My application receives data over stdin (one command per line) and should react immediately. I've tried to make such thing: self.stdin = QtCore.QFile(self) self.stdin.o

Re: [PyQt] comboBox inside a statusBar

2007-11-07 Thread Giovanni Bajo
On Wed, 2007-11-07 at 16:54 +0100, kib2 wrote: > > > > Read the documentation for "editTextChanged" and all should become clear... > > Hi Giovanni, > > Sorry, but no so for me... > > "This signal is emitted when the text in the comboBox's line edit widget > is changed. The new text is specifie

Re: [PyQt] ANN: new eric4 snapshot release

2007-11-07 Thread Phil Thompson
On Wednesday 07 November 2007, Simon Edwards wrote: > Another thing. I use grey as a background for my editing windows etc. > I've done this by messing with the syntax highlighting, but every time > the cursor is on a ':' character the screen flickers white. Is there a > global windows background c

Re: [PyQt] QComboBox and QVariant in pyqt4 ?

2007-11-07 Thread alteo_gange
Le mercredi 07 novembre 2007, Ingmar Steen a écrit : > Hi > > You can use the activated(int) signal instead and then look up the > userdata with QComboBox.itemData(int). Thanks Ingmar, it's magnificent! At last, i can use QVariant :) ___ PyQt mailing

Re: [PyQt] ANN: new eric4 snapshot release

2007-11-07 Thread Detlev Offenbach
On Mittwoch, 7. November 2007, Simon Edwards wrote: > Hi, > > Detlev Offenbach wrote: > > On Mittwoch, 7. November 2007, Simon Edwards wrote: > >> Detlev Offenbach wrote: > >>> I would like to inform about the availability of a new eric 4.1 > >>> snapshot. It fixes a bunch of bugs and has these new

Re: [PyQt] ANN: new eric4 snapshot release

2007-11-07 Thread Simon Edwards
Hi, Detlev Offenbach wrote: On Mittwoch, 7. November 2007, Simon Edwards wrote: Detlev Offenbach wrote: I would like to inform about the availability of a new eric 4.1 snapshot. It fixes a bunch of bugs and has these new functions. I've got the snapshot installed. Here's a couple of comments:

Re: [PyQt] stdin processing

2007-11-07 Thread Simon Edwards
Hi, Vladimir Pouzanov wrote: Is there any way to read stdin line by line without blocking? My application receives data over stdin (one command per line) and should react immediately. Your story sounds a lot like the world of confusion and pain I found myself in when I wanted to read a pipe i

Re: [PyQt] comboBox inside a statusBar

2007-11-07 Thread kib2
alteo_gange a écrit : Le mercredi 07 novembre 2007, kib2 a écrit : For the moment, I use the "currentIndexChanged(int)"'s SLOT wich feets my needs, but I wanted to work with string, not int values. Hi, #!/usr/bin/python # -*- coding: Utf-8 -*- import sys from PyQt4.QtGui import * from PyQt4.

Re: [PyQt] QComboBox and QVariant in pyqt4 ?

2007-11-07 Thread Ingmar Steen
On Nov 7, 2007 5:07 PM, alteo_gange <[EMAIL PROTECTED]> wrote: > Hi, > > I try to include an personal identify (or key) in ComboBox items. I've thought > to use QVariant: > > > > #!/usr/bin/python > # -*- coding: Utf-8 -*- > > import sys > from PyQt4.QtGui impor

Re: [PyQt] ANN: new eric4 snapshot release

2007-11-07 Thread Detlev Offenbach
On Mittwoch, 7. November 2007, Simon Edwards wrote: > Hi, > > Detlev Offenbach wrote: > > I would like to inform about the availability of a new eric 4.1 snapshot. > > It fixes a bunch of bugs and has these new functions. > > I've got the snapshot installed. Here's a couple of comments: > > * The a

Re: [PyQt] comboBox inside a statusBar

2007-11-07 Thread alteo_gange
Le mercredi 07 novembre 2007, kib2 a écrit : > For the moment, I use the "currentIndexChanged(int)"'s SLOT wich feets > my needs, but I wanted to work with string, not int values. Hi, #!/usr/bin/python # -*- coding: Utf-8 -*- import sys from PyQt4.QtGui import * from PyQt4.QtCore import * class

[PyQt] QComboBox and QVariant in pyqt4 ?

2007-11-07 Thread alteo_gange
Hi, I try to include an personal identify (or key) in ComboBox items. I've thought to use QVariant: #!/usr/bin/python # -*- coding: Utf-8 -*- import sys from PyQt4.QtGui import * from PyQt4.QtCore import * class Widget(QWidget): def __init__(self):

Re: [PyQt] comboBox inside a statusBar

2007-11-07 Thread kib2
Giovanni Bajo a écrit : Read the documentation for "editTextChanged" and all should become clear... Hi Giovanni, Sorry, but no so for me... "This signal is emitted when the text in the comboBox's line edit widget is changed. The new text is specified by text." What is the meaning of 'cha

Re: [PyQt] comboBox inside a statusBar

2007-11-07 Thread Giovanni Bajo
On 11/7/2007 2:09 PM, kib2 wrote: Ingmar Steen a écrit : Hi, You get that message because QComboBox::textChanged is a Qt3 compatibility signal. In Qt4 you should use the editTextChanged signal, the activated signal or the currentIndex signal. Ingmar Thanks Ingmar, I choose "textChanged" bec

Re: [PyQt] comboBox inside a statusBar

2007-11-07 Thread kib2
Ingmar Steen a écrit : Hi, You get that message because QComboBox::textChanged is a Qt3 compatibility signal. In Qt4 you should use the editTextChanged signal, the activated signal or the currentIndex signal. Ingmar Thanks Ingmar, I choose "textChanged" because I've found it in QtDesigner4

Re: [PyQt] comboBox inside a statusBar

2007-11-07 Thread Ingmar Steen
On Nov 7, 2007 10:57 AM, kib2 <[EMAIL PROTECTED]> wrote: > Hi, > > I've just tried to add a comboBox inside my statusBar of my Main > application like this : > > def manageStatusBar(self): > self.combo = QtGui.QComboBox(self) > self.langList = QtCore.QStringList(["a","b"

[PyQt] comboBox inside a statusBar

2007-11-07 Thread kib2
Hi, I've just tried to add a comboBox inside my statusBar of my Main application like this : def manageStatusBar(self): self.combo = QtGui.QComboBox(self) self.langList = QtCore.QStringList(["a","b","c","d","e"]) self.combo.addItems(self.langList)