Re: [PyQt] Converting an ugly path to a shell path

2010-09-14 Thread AmFreak
Am 14.09.2010, 08:08 Uhr, schrieb Sybren A. Stüvel : On Tuesday 14 September 2010 00:08:40 amfr...@web.de wrote: I think quotes don't work always ? For example when i have a dir like ""' how do i quote it ? I would take out the middle man. Don't use the shell, unless you really have to. If yo

Re: [PyQt] Converting an ugly path to a shell path

2010-09-13 Thread AmFreak
I think quotes don't work always ? For example when i have a dir like ""' how do i quote it ? Am 13.09.2010, 23:42 Uhr, schrieb : Have you try to use quotes ? C. Message du : 13/09/2010 De : amfr...@web.de A : "pyqt@riverbankcomputing.com" Copie à

Re: [PyQt] Converting an ugly path to a shell path

2010-09-13 Thread AmFreak
Hmm that doesn't work, it only seems to change things like multiple "///" to one "/", but doesn't add "\" for special chars. Am 13.09.2010, 21:07 Uhr, schrieb Darryl Wallace : -Original Message- From: pyqt-boun...@riverbankcomputing.com [mailto:pyqt- boun...@riverbankcomputing.co

[PyQt] Converting an ugly path to a shell path

2010-09-13 Thread AmFreak
ke this /home/user/!" §$/. The shell don't understand the special chars so i have to escape them with "\" . Is there a function that does this ? If there isn't i would use a RegEx but I can't even seem to find a list co

Re: [PyQt] Selecting the last added item in a QAbstractTableModel

2010-09-09 Thread AmFreak
n't selected (marked) - how can i do this ? Greetings AmFreak ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt ___ PyQt mailing listPyQt@ri

[PyQt] Selecting the last added item in a QAbstractTableModel

2010-09-08 Thread AmFreak
(self.fList)) self.fList.append(filesystem) self.endInsertRows() now the new data is added to the tableview and the view is sorted. But what bugs me is that the new row isn't selected (marked) - how can i do this ? Greetings Am

[PyQt] Problem sorting a QTable

2010-08-07 Thread AmFreak
Hi, i have a list with my Objects that i put in a QTableWidget, I do it like this: self.tblData.setItem(self.__row, 0, item1) self.tblData.setItem(self.__row, 1, item2) self.tblData.setItem(self.__row, 2, item3) self.__row += 1 self.tblData.setRowCount(

[PyQt] Adding a Submenu to a Context Menu of a Plasmoid

2010-07-14 Thread AmFreak
Hi, im trying to add a Submenu to a Context Menu of my Plasmoid - but i'm failing. Below is the Code for adding 2 Items to the Context Menu: def contextualActions(self): menu=[] a = QAction(KIcon(self.package().path() + "contents/icons/show.svg"), "item1", self)

[PyQt] Adding a Submenu to a Context Menu of a Plasmoid

2010-07-14 Thread AmFreak
Hi, im trying to add a Submenu to a Context Menu of my Plasmoid - but i'm failing. Below is the Code for adding 2 Items to the Context Menu: def contextualActions(self): menu=[] a = QAction(KIcon(self.package().path() + "contents/icons/show.svg"), "item1", self)