Re: [PyQt] Can QLineEdit do this?

2012-05-09 Thread simozack
of the search text area. When you click on the *icon*, it will pop up a menu which let you narrow the search range. The following picture demos what i exactly want it to be: You can take a look at my EvolutionSearch.py on my pyqtexamples little repo: https://bitbucket.org/simozack/pyqtexamples/src HTH

Re: [PyQt] Issue with selected cells in a QTableView

2011-03-22 Thread simozack
*Sorry, I answered with a private e-mail* 2011/3/17 Vicent Mas uve...@gmail.com: can somebody help me with this problem, please? I've spent several days thinking about it but I still don't know if it is a bug (as I believe) or not and I have not a fix, not even a workaround. Hi Vincent, It

Re: [PyQt] Issue with selected cells in a QTableView

2011-03-22 Thread simozack
2011/3/22 Vicent Mas uve...@gmail.com: it is explained in my second mail of this thread.  Vincent Van de Vyvre asked exactly the same. If it is not clear enough I can explain it again. But let me insist, even if my script was purely an academic exercise, without practical interest, *if it

Re: [PyQt] QMainWindow bug?

2011-01-19 Thread simozack
2011/1/19 Antonio Valentino antonio.valent...@tiscali.it: Segmentation fault on: GNU/Linux x86_64 2.6.35 (Ubuntu 10.10) Python 2.6.6 PyQt4 4.7.4 Qt4 4.7.0 No problem if I add del toolbars_submenu at the very and of the program It seems that having around references to objects that

Re: [PyQt] setItemDelegateForColumn() doesn't work? (so setItemDelegateForRow() does)

2010-01-04 Thread simozack
2010/1/4 Zhaohao Liang liang...@gmail.com: Hi I'm using PyQt 4.6.2 for Python 2.6. It seems that the setItemDelegateForColumn() of QTableWidget doesn't work. I have checked it with below code:    print ui.tableWidget.itemDelegateForColumn(0)    ui.tableWidget.setItemDelegateForColumn(0,

Re: [PyQt] Table changed/modified method

2009-10-21 Thread simozack
2009/10/21 Filippo Rebora filir...@gmail.com: I'm using an extention of QtableWidget as table...is there anything like isModified() or something? Documentation didn't help (I could not find something similar in class or parents) You can use an attribute in the window class and set it to True

[PyQt] Strange behaviour QStringList

2009-09-16 Thread simozack
Problably the problem is between the desk and the chair, but I have this case: for task in TASKS: ... print type(task) ... task_list = QStringList(task) ... type 'list' Traceback (most recent call last): File stdin, line 3, in module TypeError: argument 1 of

Re: [PyQt] Strange behaviour QStringList

2009-09-16 Thread simozack
2009/9/16 Giovanni Bajo ra...@develer.com: I can't see why you're surprised then... QStringList's constructor accepts a list of strings, not a list of lists. I know that, but I'm perfoming a for loop on the list of lists... :) By the way, if I pass a list of QString it has no problem. For

Re: [PyQt] Detecting GUI changes

2009-07-28 Thread simozack
2009/7/28 Saúl Ibarra sag...@gmail.com: In an application I'm displaying a simple dialog (GUI designed with QT designer) which show data from a database. Now I'm saving all data when user hits 'OK' button, but I'd like to do that _only_ if window data has been changed. If you use a

Re: [PyQt] QTableWidgetItem editingFinished

2009-07-07 Thread simozack
In the init code of the window I have called: self.view.setItemDelegate(ViewDelegate(self)) where self.view is the QTableView and self is the parent (a QMainWindow class). I'm a newbie yet, it sounds very difficult to me. Anyway, I guess i need to learn more on that topic, thank you Simozack

Re: [PyQt] QTableWidgetItem editingFinished

2009-07-06 Thread simozack
It works exactly like the QLineEdit, because the widget it calls IS a QLineEdit (really not always: if it is a number it calls a QSpinBox or a QDoubleSpinBox, if it is a date a QDateEdit or a QDateTimeEdit etc...). The widget is returned by the function QTableWidget.itemDelegate(). Bye, Simone

[PyQt] How to obtain something like the Outlook Calendar

2009-02-13 Thread simozack
Hi, For a friend of mine, I'm trying to write a program that traces the working hours. I think that one simple way to track the hours is simulating an agenda in a similar way that the Outlook Calendar does. I make some experiment with a tableView and it seems possible. Now I want to make a

Re: [PyQt] import ui_rc

2009-02-04 Thread simozack
2009/2/4, Yusuf X ys1...@gmail.com: I have one question: when I run pyuic4 on a .ui file that has a QMainWindow, it adds import ui_rc at the end of the resultant .py file. Then when I use that .py file, I get ImportError: No module named ui_rc. If I delete that last line by hand, the .py

Re: [PyQt] Two base classed inherit QWidget

2009-02-02 Thread simozack
2009/2/2, Matt Smith mel...@orangepalantir.org: Could someone explain to me, how is that possible and why it works: class A(QWidget): def __init__(self): QWidget.__init__(self) class B(QWidget): def __init__(self): QWidget.__init__(self) class C(A, B):

Re: [PyQt] Two base classed inherit QWidget

2009-02-02 Thread simozack
2009/1/31, Filip Gruszczyński grusz...@gmail.com: Could someone explain to me, how is that possible and why it works: class A(QWidget): def __init__(self): QWidget.__init__(self) class B(QWidget): def __init__(self): QWidget.__init__(self) class C(A, B): def __init__(self):

Re: [PyQt] best way to manage forms?

2009-01-29 Thread simozack
2009/1/27, Linos i...@linos.es: For an example form that i would need to manage i have a customer table and an address table (because for every customer they can have 1 addresses) so in the same form i would like to edit all the possible data of the customer. It seems a work for two

Re: [PyQt] best way to manage forms?

2009-01-29 Thread simozack
2009/1/29, Linos i...@linos.es: Yes i have read the book, anyway i will read other time the chapter 15 only in case i have missed anything important, but i prefer my users edit the information in external widgets, for example the address street it is too long to edit it clearly inside the

Fwd: [PyQt] Subclass pyuic4 generated file...

2009-01-16 Thread simozack
I forward this message to the list, because I send this only in private. Sorry for the error. Simone -- Forwarded message -- From: simozack simoz...@yahoo.it Date: 2009/1/16 Subject: Re: [PyQt] Subclass pyuic4 generated file... To: NoursBleu noursb...@free.fr 2009/1/16 NoursBleu

Re: [PyQt] QTreeWidget Problem

2008-11-03 Thread simozack
2008/11/3 Min Li [EMAIL PROTECTED]: I want to store the selected item in the QTreeWidget into a local variable. I use the variable = self.treeWidget.currentItem() print variable to do this task. However, it returns the following sentences. 'PyQt4.QtGui.QTreeWidgetItem

Re: [PyQt] cxfreeze

2008-11-03 Thread simozack
2008/11/3 [EMAIL PROTECTED] [EMAIL PROTECTED]: I hope that you can help me. I'm uder linux and i neeed tu make a binary of one test program. I have try to use cxfreeze but when i run it i get: ImportError No module named PyQt4._qt Can you helm me to make e easy setup script. I get the same