Re: [PyQt] QComboBox.findItem and tuples

2012-10-11 Thread Phil Thompson
On Thu, 11 Oct 2012 22:21:09 +0200, Vicent Mas wrote: > Hi, > > as shows the following code, QComboBox.findItem works fine with lists > but no with tuples. > > if __name__ == "__main__": > import sip > sip.setapi('QVariant', 2) > from PyQt4 import QtGui > a = QtGui.QApplication([

[PyQt] QComboBox.findItem and tuples

2012-10-11 Thread Vicent Mas
Hi, as shows the following code, QComboBox.findItem works fine with lists but no with tuples. if __name__ == "__main__": import sip sip.setapi('QVariant', 2) from PyQt4 import QtGui a = QtGui.QApplication([]) cb = QtGui.QComboBox() cb.addItem("Foo", [3,4]) cb.addItem("

Re: [PyQt] [QScintilla] - changing font to editor by settings dialog

2012-10-11 Thread Salvatore Larosa
Hi Detlev and thank you for your quick reply, 2012/10/11 Detlev Offenbach > ** > > All stuff you asked for is used in the eric IDE. You may have a look at > the code or simply use it for your purpose. > > > I am working on development of a simple interactive python console [1] and I would like

Re: [PyQt] [QScintilla] - changing font to editor by settings dialog

2012-10-11 Thread Detlev Offenbach
All stuff you asked for is used in the eric IDE. You may have a look at the code or simply use it for your purpose. Regards, Detlev On Thursday 11 October 2012, 14:33:48 Salvatore Larosa wrote: Hi all, I would like to change font and fontsize (eventually API path too) in my editor by using a s

[PyQt] [QScintilla] - changing font to editor by settings dialog

2012-10-11 Thread Salvatore Larosa
Hi all, I would like to change font and fontsize (eventually API path too) in my editor by using a setting dialog. What I looking to do is on event click (accept) of settings dialog apply the changes at the editor. Any hint ? Also, is there any useful resource on how can I use refreshProperties,