[PyQt] unicode and pyqt4

2010-11-24 Thread Janwillem van Dijk
I have a small application that displays a tree structure using ete2 (http://ete.cgenomics.org/). The node names are unicode and contain in particular German and French special chars. When I run the script from Eric4 or directly from a terminal with python scriptname.py all is OK. However I

Re: [PyQt] unicode and pyqt4

2010-11-24 Thread Yao Ko
On Wed, Nov 24, 2010 at 12:58 AM, Janwillem van Dijk jwevand...@xs4all.nl wrote: I have a small application that displays a tree structure using ete2 (http://ete.cgenomics.org/). The node names are unicode and contain in particular German and French special chars. When I run the script from

Re: [PyQt] embedding iconic pushButton in TableView and/or TreeView

2010-11-24 Thread Hans-Peter Jansen
On Wednesday 24 November 2010, 04:00:15 James Polk wrote: Hans, I'm sure you're right, but I'm still a little dense about this, lol... All the examples of spinDelegates that I've seen are using integers, and are present in every cell...usually in QTableView... I'm using QTreeView, and I

Re: [PyQt] Resize columns in QTreeViewv

2010-11-24 Thread Hans Meine
Hi again! Op den Dingsdag 23 November 2010 Klock 23:39:11 hett Gionata Boccalini schreven: Ok , but if I specify the filters in this way: self.__fileModel.setFilter(QDir.AllDirs|QDir.Files|QDir.NoDotAndDotDot) all the directories are shown, and all the files... I want only the files, but

Re: [PyQt] Resize columns in QTreeViewv

2010-11-24 Thread Hans Meine
Op den Dingsdag 23 November 2010 Klock 18:03:15 hett Hans Meine schreven: void QFileSystemModel::setFilter ( QDir::Filters filters ) Sets the directory model's filter to that specified by filters. *Note that the filter you set should always include the QDir::AllDirs* enum value, otherwise

Re: [PyQt] PyQt.QtHelp - QFSFileEngine::open: No file name specified

2010-11-24 Thread romain
Hans-Peter Jansen wrote: On Tuesday 23 November 2010, 14:28:16 romain wrote: Hi everybody, I am facing an issue when I use the PyQt.QtHelp module. I have generated a .qhc file containing the documentation I want to embed into my soft so users can access it directly. It is made up with

[PyQt] MDI Windows Example

2010-11-24 Thread Арсений Т
Hello. Ctrl+F4 does not work in examples\mainwindows\mdi\mdi.pyw: QAction::eventFilter: Ambiguous shortcut overload: Ctrl+F4 (Python 2.5, windows XP, latest PyQt4) ___ PyQt mailing listPyQt@riverbankcomputing.com

Re: [PyQt] PyQt.QtHelp - QFSFileEngine::open: No file name specified

2010-11-24 Thread Hans-Peter Jansen
On Wednesday 24 November 2010, 13:54:50 romain wrote: Hans-Peter Jansen wrote: On Tuesday 23 November 2010, 14:28:16 romain wrote: Hi everybody, I am facing an issue when I use the PyQt.QtHelp module. I have generated a .qhc file containing the documentation I want to embed into

[PyQt] QWidget over QTableView

2010-11-24 Thread Vadym Honcharuk
Hello, for editing cells in QTableView table we apply delegates with different editors like combobox and etc, but if exists, for example, three associated columns which much easier editing in special separate form - QWidget how call it and ship data from it back to table? thanks in advance.

Re: [PyQt] unicode and pyqt4

2010-11-24 Thread Janwillem van Dijk
On 11/24/2010 10:04 AM, Yao Ko wrote: On Wed, Nov 24, 2010 at 12:58 AM, Janwillem van Dijk jwevand...@xs4all.nl wrote: I have a small application that displays a tree structure using ete2 (http://ete.cgenomics.org/). The node names are unicode and contain in particular German and French

Re: [PyQt] unicode and pyqt4

2010-11-24 Thread Jean-Claude Repetto
Le 24/11/2010 17:40, Janwillem van Dijk a écrit : On 11/24/2010 10:04 AM, Yao Ko wrote: The traceback.print_exc gives: UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 1: ordinal not in range(128) print u'\xe4' correctly shows the German a-umlaut '\xe4' is not

Re: [PyQt] embedding iconic pushButton in TableView and/or TreeView

2010-11-24 Thread James Polk
I've transcoded the stardelegate example a few weeks ago, which uses a custom widget in a QTableView, but due to the model/view/delegate pattern, that should be easy to map onto your problem. Pete Thanks for your reply, Pete... I reread chap's 14,15, and 16 from Mark Summerfield's book

Re: [PyQt] unicode and pyqt4

2010-11-24 Thread Wolfgang Rohdewald
On Mittwoch 24 November 2010, Janwillem van Dijk wrote: When I run the script from Eric4 or directly from a terminal with python scriptname.py all is OK. However I want to run it as a subprocess and than the special chars generate errors: if stdout is pipelined, python tries to encode its

Re: [PyQt] embedding iconic pushButton in TableView and/or TreeView

2010-11-24 Thread Hans-Peter Jansen
On Wednesday 24 November 2010, 19:10:05 James Polk wrote: I've transcoded the stardelegate example a few weeks ago, which uses a custom widget in a QTableView, but due to the model/view/delegate pattern, that should be easy to map onto your problem. Pete Thanks for your reply, Pete...

Re: [PyQt] MDI Windows Example

2010-11-24 Thread TP
On Wed, Nov 24, 2010 at 6:26 AM, Арсений Т sen...@gmail.com wrote: Hello.        Ctrl+F4 does not work in examples\mainwindows\mdi\mdi.pyw:    QAction::eventFilter: Ambiguous shortcut overload: Ctrl+F4    (Python 2.5, windows XP, latest PyQt4) ___

[PyQt] problem installing pyqt in windows

2010-11-24 Thread marcos hipe
im having much problems :( jeje doing the make to the pyqt with MinGW, the console say that: * mingw32-make[1]: *** [QtGui.pyd] Error 255 * mingw32-make[1]: Leaving directory `C:/PyQt-20090403/QtGui' * mingw32-make: *** [all] Error 2 in an old mail of this list one say: I ran into this issue

Re: [PyQt] unicode and pyqt4

2010-11-24 Thread Janwillem van Dijk
On 11/24/2010 07:29 PM, Wolfgang Rohdewald wrote: On Mittwoch 24 November 2010, Janwillem van Dijk wrote: When I run the script from Eric4 or directly from a terminal with python scriptname.py all is OK. However I want to run it as a subprocess and than the special chars generate errors:

Re: [PyQt] Resize columns in QTreeViewv

2010-11-24 Thread Gionata Boccalini
Ok, now I have this slot: def updateFiles(self, index): path = self.__dirModel.filePath(index) self.__fileModel.setRootPath(path) self.__fileModel.setFilter(QDir.Files) fileIndex = self.__fileModel.index(path) self.__fileView.setRootIndex(fileIndex)

Re: [PyQt] MDI Windows Example

2010-11-24 Thread Phil Thompson
On Wed, 24 Nov 2010 17:26:38 +0300, Арсений Т sen...@gmail.com wrote: Hello. Ctrl+F4 does not work in examples\mainwindows\mdi\mdi.pyw: QAction::eventFilter: Ambiguous shortcut overload: Ctrl+F4 (Python 2.5, windows XP, latest PyQt4) I can't reproduce this with Qt v4.7.1.

Re: [PyQt] embedding iconic pushButton in TableView and/or TreeView

2010-11-24 Thread James Polk
WhoI got a custom delegate installedat least partially, lol... Using the basic QItemDelegate I've first tried a comboBox, which seems a little more straightforward,.. When using QTableView,...the index.column() calls want text matching the column headings,...but in QTreeView, the

Re: [PyQt] problem installing pyqt in windows

2010-11-24 Thread marcos hipe
2010/11/24 marcos hipe marcosh...@gmail.com: im having much problems :( jeje doing the make to the pyqt with MinGW, the console say that: * mingw32-make[1]: *** [QtGui.pyd] Error 255 * mingw32-make[1]: Leaving directory `C:/PyQt-20090403/QtGui' * mingw32-make: *** [all] Error 2 in an old

Re: [PyQt] Complex header of QTableView

2010-11-24 Thread Vadym
thank you Hans-Peter! Sorry for enought common question about but I asked rather the way to resolve problem than specific code for me. Seems for multilevel table headers better creates two different tables: one as header and one properly for data? thanks a lot! with best regards, -vadym

Re: [PyQt] QWidget over QTableView

2010-11-24 Thread Vadym Honcharuk
ok, let me clarify question: I need call Qwidget with search box from cell of QTableView than make search text data in different file (its rare changed database) and put result back to QtableView cell. as far I know usual delegate not suitable for it (call QWidget). So what method can call