Re: [PyQt] pyuic4 vs uic.loadUI

2010-09-29 Thread David Douard
   Hmm interesting topic, I recently had to switch back from ui files to
 py files because I couldnt get py2exe to package the ui files correctly
 (Any help appreciated though)

I usually use both of them to deal with this problem.

My python code which depends on ui files (ie. class which heritate from 
widgets made in designer) tries to load ui file using uic.loadUI, and if it 
fails, it tries to load the class from the module made by pyuic4.

This allows me to use .ui files directly during development process. Then when 
I must release the code, the setup.py generates the python modules from ui 
file (using pyuic4), and these modules are packaged by distutils (which is 
used for py2exe or to build debian packages).

This king of stuff is used for example in hgview 
(http://www.logilab.org/project/hgview) 

David


signature.asc
Description: This is a digitally signed message part.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] event filters vs subclassing

2010-08-25 Thread David Douard
 On Tue, Aug 3, 2010 at 2:27 PM, Dan Halbert halb...@halwitz.org wrote:
[...]
 The best solution would be if PyQt could be extended with a new
 installEventFilter method which also takes an optional list with event
 classes you are only interested in.

I strongly agree. I would be very helpful to have such python-specific 
extensions to Qt (thus not sticking to Qt bare API, which is something is 
already done with new style signal, IMO).

This extension being IMHO one of the most necessary. An other one would be 
to have the possibility to filter the QAbstractItemModel.data method, since 
the general case is to only be interested in implementing it for 
Qt.DisplayRole.

Regards,
David


signature.asc
Description: This is a digitally signed message part.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Examples of Big PyQt application with sources

2010-01-18 Thread David Douard
Le Thursday 14 January 2010 03:23:00 AON LAZIO, vous avez écrit :
 Hi,
  You guys know the sources where we can get source codes for some big
 pyqt applications? I mean the applications that are actually deployed for
 real use
  Thanks

For a not so big (but really used) application, you may have a look at hgview 
http://www.logilab.org/project/hgview

-- 
David DouardLOGILAB, Paris (France), +33 1 45 32 03 12
Formations Python, Zope, Debian :   http://www.logilab.fr/formations
Développement logiciel sur mesure : http://www.logilab.fr/services
Informatique scientifique : http://www.logilab.fr/science
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Two questions about PyQt

2009-11-24 Thread David Douard
Le Wednesday 25 November 2009 07:19:48 tiob lew, vous avez écrit :
 I am a newbie to Python and have two questions using python to design UI
 based PyQT4.6.

 The source code is
 ===
 #!/usr/bin/python
 #MyUI.py

 import sys
 import random
 from PyQt4 import QtCore, QtGui


 class MyUI(QtGui.QWidget):
 def __init__(self, parent=None):
 QtGui.QWidget.__init__(self, parent)
 self.setWindowTitle('My UI')

 cb1 = QtGui.QCheckBox('MyCheckBox1', self)
 cb2 = QtGui.QCheckBox('MyCheckBox2', self)

 bg = QtGui.QButtonGroup(parent)

 bg.setExclusive(1)
 bg.addButton(cb1)
 bg.addButton(cb2)

 hbox = QtGui.QHBoxLayout()
 hbox.addStretch(1)
 hbox.addWidget(cb1)
 hbox.addWidget(cb2)
 self.setLayout(hbox)
 self.resize(900, 600)

 lb1 = QtGui.QLabel('Name')
 lb2 = QtGui.QLabel('Age')
 lb3 = QtGui.QLabel('Address')

 tf1 = QtGui.QLineEdit()
 tf2 = QtGui.QLineEdit()
 tf3 = QtGui.QLineEdit()

 hbox.addWidget(lb1)
 hbox.addWidget(tf1)
 hbox.addWidget(lb2)
 hbox.addWidget(tf2)
 hbox.addWidget(lb3)
 hbox.addWidget(tf3)

 tf1.setText('Jone')
 tf2.setText('28')
 tf3.setText('London')

 update = QtGui.QPushButton('update')
 hbox.addWidget(update)
 self.connect(update, QtCore.SIGNAL('clicked()'),
  self, QtCore.SLOT('update_info(self)'))

 def update_info(self):
 tf1.setText('Alice')
 tf2.setText('18')
 tf3.setText('New York')

 app = QtGui.QApplication(sys.argv)
 ui = MyUI()
 ui.show()
 sys.exit(app.exec_())


 

 I want to implement two functions in this piece of code.
 1) implement the exclusive checkbox in a group of checkboxes. In another
 word, only one of CheckBox1 and Checkbox2 could be checked at any time.

Use QRadioButton widgets for this.

 2) After clicking update button, the information should be updated as
 Name  Alice
 Age - 18
 Address--- New York

Simply keep references to your QLineEdit widgets as attributes of your class, 
eg. by replacing everywhere tf1 by self.tf1 (and so forth).
And replace 
 self.connect(update, QtCore.SIGNAL('clicked()'),
  self, QtCore.SLOT('update_info(self)'))

by 
 self.connect(update, QtCore.SIGNAL('clicked()'),
  self.update_info)


 How should the code be modified to implement this two functionalities?

Basically, you really should read a bit of Python, Qt and PyQt documentation 
or at least follow tutorials.

 Many thanks.

 _
 Hotmail: Trusted email with powerful SPAM protection.
 http://clk.atdmt.com/GBL/go/177141665/direct/01/



-- 
David DouardLOGILAB, Paris (France), +33 1 45 32 03 12
Formations Python, Zope, Debian :   http://www.logilab.fr/formations
Développement logiciel sur mesure : http://www.logilab.fr/services
Informatique scientifique : http://www.logilab.fr/science

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Problem with class inheriting QDialog

2009-11-20 Thread David Douard
Looks like you are not calling QMainWindow base constructor.


Le Friday 20 November 2009 17:44:30 dizou, vous avez écrit :
 Dialog.py:

 import sys
 from PyQt4.QtGui import QDialog

 def Dialog(QDialog):
   def __init__(self, parent):
   QDialog.__init__(self, parent)

 MainWindow.py:

 from PyQt4.QtCore import SIGNAL, SLOT, QDir, QFile
 from PyQt4.QtGui import QApplication, QMainWindow, QMenu, QMessageBox, \
  QWidget, qApp, QAction, QFileDialog, QPushButton
 from Dialog import *

 class MainWindow(QMainWindow):
 def __init__(self):

  QMainWindow.__init__(self)

 #stuff
 self.editButton = QPushButton(self)
 self.connect(self.editButton, SIGNAL(clicked()),
 self.EditButtonClicked)
 def EditButtonClicked(self):
 self.dialog = Dialog(self)
 print type(self.dialog)
 self.dialog.exec_()



-- 
David DouardLOGILAB, Paris (France), +33 1 45 32 03 12
Formations Python, Zope, Debian :   http://www.logilab.fr/formations
Développement logiciel sur mesure : http://www.logilab.fr/services
Informatique scientifique : http://www.logilab.fr/science

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] [ANN] hgview 1.1.0

2009-09-25 Thread David Douard
I am pleased to announce you to the latest release of `hgview 1.1.0`_.


What is it?
---

For the ones from the back of the classroom near the radiator, let me
remind you that hgview_ is a very helpful tool for daily work using
the excellent DVCS Mercurial_ (which we heavily use at Logilab_, thanks Matt 
and others!). It allows to easily and visually navigate your hg repository 
revision graphlog. It is written in Python_ and pyqt_.

What's new
--

- user can now configure colors used in the diff area (and they now
  default to white on black)

- indicate current working directory position by a square node in the graph

- add many other configuration options (listed when typing `hg help hgview`)

- removed 'hg hgview-options' command in favor of 'hg help hgview' 

- add ability to choose which parent to diff with for merge nodes

- dramatically improved UI behaviour (shortcuts, history of navigation, goto 
next/prev diff (in some views), etc.)

- improved help and make it accessible from the GUI

- make it possible not to display the diffstat column of the file list
  (which can dramatically improve performances on big repositories)

- standalone application: improved command line options

- add auto-reload feature (when the repo is modified due to a pull, a
  commit, etc., hgview detects it, reloads the repo and updates the
  graph)

- fix *many* bugs, especially the file log navigator should now
  display the whole graph

- (maybe) improved performances a bit



Download and installation
-

The source code is available as a tarball_, or using our `public hg 
repository`_ of course.

To use it from the sources, you just have to add a line in your ``.hgrc`` 
file, in the `[extensions]` section:

  hgext.hgview=/path/to/hgview/hgext/hgview.py
  

Debian_ and Ubuntu_ users can also easily install hgview (and Logilab other 
free software tools) using our `deb package repositories`_.


.. _`hgview 1.1.0`: http://www.logilab.org/project/hgview/1.1.0
.. _hgview: http://www.logilab.org/project/hgview
.. _Mercurial: http://www.selenic.com/mercurial
.. _`deb package repositories`: 
http://www.logilab.org/card/LogilabDebianRepository
.. _`public hg repository`: http://www.logilab.org/cgi-bin/hgwebdir.cgi/
.. _Debian: http://www.debian.org
.. _Ubuntu: http://www.ubuntu.com
.. _tarball: http://ftp.logilab.org/pub/hgview/hgview-1.0.0.tar.gz
.. _qt4: http://www.qtsoftware.com/products/
.. _pyqt: http://www.riverbankcomputing.co.uk/software/pyqt/intro
.. _Python: http://www.python.org
.. _Logilab: http://www.logilab.fr
-- 
David DouardLOGILAB, Paris (France), +33 1 45 32 03 12
Formations Python, Zope, Debian :   http://www.logilab.fr/formations
Développement logiciel sur mesure : http://www.logilab.fr/services
Informatique scientifique : http://www.logilab.fr/science

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] ANN hgview 1.0.0 released

2009-06-09 Thread David Douard
On Tuesday 09 June 2009 01:29:17 David Boddie wrote:
 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 this a while ago, so I must
 admit that I've already tried it, but this release gave me an excuse to
 try out the package from one of your deb package repositories. :-)

Thanks,

 Have you tried it against really large repositories, especially those
 converted from git?

I've tried it with repos with a few 1's of revisions, but not against the 
linux kernel for example.
I plan to play with this when I find time for it.

 David
 ___
 PyQt mailing listPyQt@riverbankcomputing.com
 http://www.riverbankcomputing.com/mailman/listinfo/pyqt



-- 
David DouardLOGILAB, Paris (France), +33 1 45 32 03 12
Formations Python, Numpy, Debian :  http://www.logilab.fr/formations
Développement logiciel sur mesure : http://www.logilab.fr/services
Informatique scientifique : http://www.logilab.fr/science


signature.asc
Description: This is a digitally signed message part.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] ANN hgview 1.0.0 released

2009-06-06 Thread David Douard
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 allows to easily and visually navigate in your hg repository revision 
graphlog. It is written in Python and pyqt (which the reason why I am sending 
this message on this list).  

A more detailed annoucement is available on 

  http://www.logilab.org/blogentry/9297

Source code, bugtracker, etc. are on 

  http://www.logilab.org/project/hgview

I hope you'll like it.


-- 
David DouardLOGILAB, Paris (France), +33 1 45 32 03 12
Formations Python, Numpy, Debian :   http://www.logilab.fr/formations
Développement logiciel sur mesure : http://www.logilab.fr/services
Informatique scientifique : http://www.logilab.fr/science


___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Fast way to display an array in a table?

2009-05-28 Thread David Douard
Le jeudi 28 mai 2009 20:57:50 Vicente Sole, vous avez écrit :
 Hello,

 I am writing a generic data handling application in which I need to be
 able to show the contents of a numpy array in a sort of
 table/spreadsheet. The array can be big (1024 x 1024 floats or may be
 even more).

 Is there a faster way of filling a table than looping through all the
 array elements and introducing them in the table cells one by one?


You should use a QTableView with a model you write (which should derivate from 
QAbstractTableModel) like the file attached.

-- 
David DouardLOGILAB, Paris (France), +33 1 45 32 03 12
Formations Python, Numpy, Debian :   http://www.logilab.fr/formations
Développement logiciel sur mesure : http://www.logilab.fr/services
Informatique scientifique : http://www.logilab.fr/science

import numpy
from PyQt4 import QtCore, QtGui
Qt = QtCore.Qt

class NumpyModel(QtCore.QAbstractTableModel):
def __init__(self, narray, parent=None):
QtCore.QAbstractTableModel.__init__(self, parent)
self._array = narray

def rowCount(self, parent=None):
return self._array.shape[0]

def columnCount(self, parent=None):
return self._array.shape[1]

def data(self, index, role=Qt.DisplayRole):
if index.isValid():
if role == Qt.DisplayRole:
row = index.row()
col = index.column()
return QtCore.QVariant(%.5f%self._array[row, col])
return QtCore.QVariant()

if __name__ == __main__:
a = QtGui.QApplication([])
w = QtGui.QTableView()
d = numpy.random.normal(0,1, (1000,1000))
m = NumpyModel(d)
w.setModel(m)

w.show()
a.exec_()


___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] faster alternative to QHeaderView's resizeToContents?

2009-05-12 Thread David Douard
On Saturday 09 May 2009 09:28:16 Edwin Marshall wrote:
  I have a QTableView that displays the contents of a model with over 3000
 rows, each with 11 columns. I'd like to the original size of these columns
 to be no larger than the content within them, but setting their
 resizeMode's to QHeaderView.resizeToContents causes the tremendous slow
 downs (where originally the data would load in two seconds, using this mode
 causes the data to be loaded after about a minute and a half). Is there
 some faster alternative?

 I'm thinking of calculating the width by using the length of the largest
 item in the column, but that would require me to know how large in pixels
 each character is.

 Any suggestions?  

This can be done reimplementing the sizeHintForColumn method of a QTableView. 
You should create your own QTableView based class and reimplement this method 
the smart way. See Qt doc for more details on this method.




-- 
David DouardLOGILAB, Paris (France), +33 1 45 32 03 12
Formations Python, Numpy, Debian :  http://www.logilab.fr/formations
Développement logiciel sur mesure : http://www.logilab.fr/services
Informatique scientifique : http://www.logilab.fr/science

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] How to clear QDateTime

2009-02-01 Thread David Douard
Le Saturday 31 January 2009 19:15:23 Marc Nations, vous avez écrit :
 Hi,
 I can't seem to clear out the QDateTime field in cases where I don't want
 the date displayed. Using clear() seems to wipe out the first entry (in
 this case the hour). I tried hitting multiple clears thinking that it may
 just work down the list, but that didn't work. Is there a way to blank out
 the field completely? I know it can be disbled, but I'd like to have it be
 blank until the user goes and selects the pop-up calendar.

 Thanks,
 Marc

This is a gap in Qt, and it won't happen before a while. See 
http://www.qtsoftware.com/developer/task-tracker/index_html?method=entryid=135683

David



-- 
David DouardLOGILAB, Paris (France), +33 1 45 32 03 12
Formations Python, Zope, Debian :   http://www.logilab.fr/formations
Développement logiciel sur mesure : http://www.logilab.fr/services
Informatique scientifique : http://www.logilab.fr/science


signature.asc
Description: This is a digitally signed message part.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Splash Screen

2008-10-06 Thread David Douard
Le Friday 03 October 2008 12:04:49 [EMAIL PROTECTED], vous avez 
écrit :
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
 html
 head
 meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
 titleFlashmail/title
 style type=text/css
 BODY, TABLE, TR, TD, P {margin:0;padding:0;}
 BODY {background:#FF;}
 /style
 /head
 body
 PHello,/P
 PI would to know how to do a Splash Screen with PyQT./P/body/html

First, please use plain text format when sending messages to this 
mailing-list.

Now, for your problem, here is an example:

# make proper imports
app = QApplication([])
pixmap = QPixmap(:/images/splashscreen.png)
splash = QSplashScreen(pixmap, Qt.WindowStaysOnTopHint)
splash.setMask(pixmap.mask()) # this is usefull if the splashscreen is 
not a regular ractangle...
splash.show()
splash.showMessage(_(u'Starting...'), Qt.AlignRight | Qt.AlignBottom, 
Qt.yellow)
# make sure Qt really display the splash screen 
app.processEvents()

# start tha main app window
mainwindow = ...
# ...
# now kill the splashscreen
splash.finish(mainwindow)




-- 
David DouardLOGILAB, Paris (France), +33 1 45 32 03 12
Formations Python, Zope, Debian :   http://www.logilab.fr/formations
Développement logiciel sur mesure : http://www.logilab.fr/services
Informatique scientifique : http://www.logilab.fr/science


signature.asc
Description: This is a digitally signed message part.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] QTableWidget Data Paste Time

2008-07-31 Thread David Douard
On Wed, Jul 30, 2008 at 02:22:38PM -0700, Glenn Linderman wrote:
 On approximately 7/30/2008 2:10 PM, came the following characters from  
 the keyboard of B Clowers:
 Greetings,

 I'm interested in incorporating a QTableWidget into one of my  
 applications and would like to give it the functionality to cut, copy,  
 and paste a user selection.  So far I've implemented the copy and  
 paste actions to a functional level.  However, I often deal with very  
 large arrays (e.g. 25) rows, as such when pasting an array of that  
 size it seems to take on the order of 8-10 seconds to actually set the  
 data in the table.  I've attached a small example script that has the  
 copy and paste functionality and was hoping some of the more  
 experienced programmers out there could take a look and comment on  
 whether it is possible to commit data to the QTableWidget in a more  
 efficient manner.  So far I've only been able to use the setItem()  
 function iteratively.  There doesn't seem to be a setItems() (i.e.  
 setting a large list of items at one time).  Thanks for your help.

 Brian

 -ps I didn't attach a text file with 25 rows as it is about 1MB  
 compressed, though if anyone is interested let me know and I'll send  
 it on.


 So, I'm a PyQt newbie, so I can't help, but I can add that I've also  
 noticed that originally populating a large QTableWidget takes a long 
 time.

The solution for this is to use a QTableView and a QTableModel. See Qt
documentation on
http://doc.trolltech.com/4.4/model-view-introduction.html

and examples in PyQt (eg. in examples/itemviews ).




 So if someone can offer help, it would help us both!

 -- 
 Glenn -- http://nevcal.com/
 ===
 A protocol is complete when there is nothing left to remove.
 -- Stuart Cheshire, Apple Computer, regarding Zero Configuration Networking

 ___
 PyQt mailing listPyQt@riverbankcomputing.com
 http://www.riverbankcomputing.com/mailman/listinfo/pyqt


-- 
David DouardLOGILAB, Paris (France), +33 1 45 32 03 12
Formations Python, Zope, Debian :   http://www.logilab.fr/formations
Développement logiciel sur mesure : http://www.logilab.fr/services
Informatique scientifique : http://www.logilab.fr/science


signature.asc
Description: Digital signature
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] QtGui.QMotifStyle not in PyQt?

2008-02-13 Thread David Douard
On Wed, Feb 13, 2008 at 01:53:20PM +0100, Ulrich Berning wrote:
 Igor Prischepoff wrote:

 Hello,all!
 I'm looking in styling my pyqt application.
 There is nice python styles example ported from C++.
 But it's not complete port because NorwegianWood style is missing.
 In original C++ demo this example shows one more custom style build by user.
 So I'm digging deeper and find that QMotifStyle on which this NorwegianWood
 style is build is'n ported to python part.
  Is it done intentionally or it's just technologically hard to do? Or it's
 licensing issues?
 I'd like to build my own style for application.
 
 And second question: anyone of you guys use custom themes like NorwegianWood
 for example?
 Do you build your own or just use embedded in Qt? (plastic, cde, etc..)
 
  

 Why don't you use style sheets? With Qt4, most of the visual effects can  
 be customized with style sheets. There is no longer a need to create new  
 styles.

Well, beware that if you write an app with generated layouts, using
stylesheet dramatically increase widget creation time, thus an make
your application not very reactive.

David


 Ulli

 ___
 PyQt mailing listPyQt@riverbankcomputing.com
 http://www.riverbankcomputing.com/mailman/listinfo/pyqt


-- 
David DouardLOGILAB, Paris (France), +33 1 45 32 03 12
Formations Python, Zope, Debian :   http://www.logilab.fr/formations
Développement logiciel sur mesure : http://www.logilab.fr/services
Informatique scientifique : http://www.logilab.fr/science


signature.asc
Description: Digital signature
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] signal-slot connect problem

2008-01-09 Thread David Douard
On Tue, Jan 08, 2008 at 05:26:53PM +, Phil Thompson wrote:
 On Tuesday 08 January 2008, Martin Höfling wrote:
  Hi all,
 
  I am trying to create a filter Toolbar bar class, filtering a model.
 
  why does the following connect command  in the loadModel Method not work?:
 
  class FilterToolBar(QToolBar):
  def __init__(self):
  super(FilterToolBar,self).__init__(QString(Filter))
  self.expFilterCombo=QComboBox()
  self.projFilterCombo=QComboBox()
  self.expFilterCombo.setVisible(True)
  self.projFilterCombo.setVisible(True)
  self.addWidget(self.expFilterCombo)
  self.addWidget(self.projFilterCombo)
  self.expFilterCombo.setEditable(True)
  self.projFilterCombo.setEditable(True)
 
  def loadModel(self,  proxymdl1,  proxymdl2, model):
  self.proxymdlexp=proxymdl1
  self.proxymdlproj=proxymdl2
  self.expFilterCombo.clear()
  self.projFilterCombo.clear()
  self.expFilterCombo.clearEditText()
  self.projFilterCombo.clearEditText()
  exps=model.experiments.keys()
  projs=model.projects.keys()
  addToComboBox(exps, self.expFilterCombo)
  addToComboBox(projs, self.projFilterCombo)
 
  #problem section start
  self.connect(self.expFilterCombo, SIGNAL(editTextChanged()),
  self.expFilterChanged)
  self.connect(self.projFilterCombo, SIGNAL(editTextChanged()),
  self.projFilterChanged)
  #problem section stop
 
  def expFilterChanged(self):
 print Filter Exp update

  self.proxymdlexp.setFilterFixedString(self.expFilterCombo.itemText())
  self.proxymdlexp.setFilterKeyColumn(EXPERIMENT)
 
  def projFilterChanged(self):
 print Filter Proj update

  self.proxymdlproj.setFilterFixedString(self.projFilterCombo.itemText())
  self.proxymdlproj.setFilterKeyColumn(PROJECT)
 
  The filter toolbar is created on startup and the loadModel Method is called
  when a new model has been loaded. Nothing happens if i change the text.
 
 Because there is no signal with that signature - you've missed out the 
 argument type.

This makes me think: would'nt be possible to display a warning message
(or to add a flag somewhere which would activate this feature) when
pyqt detects a wrong signature in SIGNAL ?

I know this would break (so the idea of the flag) the easy way of
SIGNAL/SLOT in pure python (as a -- positive in my mind -- side
effect, people would be more incitated to use the pyQtSignature in
python code).

I mean it is a very common mistake, even for advanced PyQt developers,
and it is not always easy to track. It could at least save sometimes
one hour or two to many PyQt developpers, I guess ;-)
 
 
 Phil
 
 ___
 PyQt mailing listPyQt@riverbankcomputing.com
 http://www.riverbankcomputing.com/mailman/listinfo/pyqt
 

-- 
David DouardLOGILAB, Paris (France), +33 1 45 32 03 12
Formations Python, Zope, Debian :   http://www.logilab.fr/formations
Développement logiciel sur mesure : http://www.logilab.fr/services
Informatique scientifique : http://www.logilab.fr/science


signature.asc
Description: Digital signature
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt