[PyQt] QTableView cell deselected after soting

2013-09-02 Thread Sebastian Elsner
Hello, I have found a strange behavior with a combo of QTableView, QSortFilterProxyView and disabled items. If you select a row in the table from the example below then sort by a column, the cell in the last column will be deselected after sorting. This happens only for cells with ItemIsSelec

[PyQt] pyqtMethodProxy

2012-07-24 Thread Sebastian Elsner
Hello, I was trying to connect the dataChanged signal of a QTableView instance the "new style way" via its string name and __getattr__ like so: treeview.__getattr__("dataChanged").connect(someSlot) Instead of getting a bound signal (like I do with a ComboBox for example), I am getting a pyqt

Re: [PyQt] possible regression

2012-07-10 Thread Sebastian Elsner
Thank you I understand your point. I was just wondering why it worked in previous versions and thought this might be a bug. On 07/09/2012 06:20 PM, Phil Thompson wrote: On Mon, 09 Jul 2012 17:28:31 +0200, Sebastian Elsner wrote: Hello, I am updating some code to use PyQt-Py2.6-x86-gpl-4.9.4

[PyQt] possible regression

2012-07-09 Thread Sebastian Elsner
Hello, I am updating some code to use PyQt-Py2.6-x86-gpl-4.9.4-1.exe. I have previously used PyQt-Py2.6-x86-gpl-4.8.6-1.exe. With the code attached I get a runtime error in 4.9.4 I did not get in the 4.8.6. Please execute the attached py file and click the open button in the window appearing

[PyQt] pyuic resources import

2012-07-04 Thread Sebastian Elsner
Hello, my folder structure for an application I want to restructure is like this: src lib ui __init__.py MainWindow __init__.py MainWindow.ui MainWindow.py ui_MainWindow.py resources.qrc resources_rc.py

[PyQt] negative index "setWidget" not working as expected

2011-07-28 Thread Sebastian Elsner
Hallo, inserting widgets with a negative index does not work as expected. I was expecting -1 to add a widget to the end and -2 to insert it right before the last widget in the layout. Is my assumption wrong? Demo code: from PyQt4.QtGui import QLineEdit, QCheckBox, QPushButton, QDialog, QFor

Re: [PyQt] phonon videoplayer stopped working going from pyqt 4.7 to 4.8

2011-03-02 Thread Sebastian Elsner
Nokia fixed this with their 4.7.2 update, which was released March 1st. Now we just have to wait for a PyQt update. Am 03.03.2011 00:53, schrieb mw: > Any ideas why this could be? > > > I have the same issue here with a 4.8.1 install. > Sample app attached. > > Whether using the VideoPlayer

Re: [PyQt] Phonon error in 4.8.1

2010-12-06 Thread Sebastian Elsner
Jansen wrote: On Thursday 25 November 2010, 14:17:55 Sebastian Elsner wrote: Hello, switching to 4.8.1 gave me this error: WARNING: Phonon::createPath: Cannot connect Phonon::MediaObject ( no objectName ) to Phonon::VideoWidget ( no objectName ). The VideoPlayer worked well in previous ver

[PyQt] Phonon error in 4.8.1

2010-11-25 Thread Sebastian Elsner
Hello, switching to 4.8.1 gave me this error: WARNING: Phonon::createPath: Cannot connect Phonon::MediaObject ( no objectName ) to Phonon::VideoWidget ( no objectName ). The VideoPlayer worked well in previous versions without any errors? i tried to track it down, but had no luck. Could i

Re: [PyQt] pyuic4 vs uic.loadUI

2010-09-28 Thread Sebastian Elsner
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) Secondly using ui files I loose the comfort of auto-completion with pydev and Eclipse, because pydev wouldnt know how to de

Re: [PyQt] PyQt, uic and cx_freeze

2010-09-22 Thread Sebastian Elsner
I've had the exact same issue with py2exe today. I just deleted the port_v3 folder and it worked. Am 22.09.2010 20:42, schrieb Phil Thompson: On Thu, 23 Sep 2010 06:37:43 +1200, Matthew Huck wrote: Hi, I'm in the process of trying cx_freeze an PyQt app I've written and have discov

Re: [PyQt] timers from mainwindow

2010-09-15 Thread Sebastian Elsner
Of course thats it, thanks :) On 09/14/2010 08:01 PM, Doug Bell wrote: Sebastian Elsner wrote: I would like to start a QTimer from a mainwindow's menu, creating a new instance of a custom class. See the example below. All works except the timer's callback is never called. Asking if

[PyQt] timers from mainwindow

2010-09-14 Thread Sebastian Elsner
Hello, I would like to start a QTimer from a mainwindow's menu, creating a new instance of a custom class. See the example below. All works except the timer's callback is never called. Asking if the timer is active returns True. I ran out of ideas. Maybe I misunderstand how timers work?! Any

Re: [PyQt] Newbie question - Quicktime

2010-07-07 Thread Sebastian Elsner
honon needs QCoreApplication::applicationName to be set to export audio output names through the DBUS interface I've added that line to my script, no more error but still a black square with no video :( On Wed, 07 Jul 2010 09:52 +0200, "Sebastian Elsner" wrote: Hey Hugo, i

Re: [PyQt] Newbie question - Quicktime

2010-07-07 Thread Sebastian Elsner
Hey Hugo, it's not working here either. But this might be because the backend is not able to play it. Which OS are you on? I am on windows XP and I think QT is not supported there for phonon. Start the capabilities app, which comes with the pyqt phonon examples. There you can find what is sup

Re: [PyQt] QLineEdit drop event

2010-04-29 Thread Sebastian Elsner
Ah, thanks Sybren, this works. Regards, Sebastian On Wed, 28 Apr 2010 16:31:05 +0200, Sybren A. Stüvel wrote: On 28-4-2010 16:23, Sebastian Elsner wrote: Ah, thanks Sybren, this works. Great! Perhaps you could forward your reply to the list too? It may be useful for others to read that

[PyQt] QLineEdit drop event

2010-04-28 Thread Sebastian Elsner
Hello, I designed a GUI with Qt Designer. The GUI has several QLineEdits. I'd like to be able to drop files from the windows explorer to this line edits and display the path of the files. Documentation suggests that I subclass the line edit and reimplement the dropEvent. Would not be a pro

Re: [PyQt] QSystemTrayIcon not working with py2exe

2010-04-27 Thread Sebastian Elsner
Apr 2010 15:50:16 +0200, Sebastian Elsner wrote: Hello Nick, my setup.py is autogenerated by GUI2exe. Find the contents below. As you can see, I included the icon as data and icon file (even if I did not have to when I was using ressources). both ways work when not compiled with py2exe

Re: [PyQt] QSystemTrayIcon not working with py2exe

2010-04-27 Thread Sebastian Elsner
se, "skip_archive": False, "ascii": False, "custom_boot_script": '', } }, zipfile = None, console = [], windows = [GUI2Exe_Target_1],

[PyQt] QSystemTrayIcon not working with py2exe

2010-04-27 Thread Sebastian Elsner
Hello, My application has a system tray icon, which gets its data from a ressource compiled via pyrcc. When started via double click on the .py script the icon shows up as expected. But when I compile with py2exe It does not. I also tried not using pyrcc, same result. Is this a known prob

Re: [PyQt] QStandardItemModel best practice

2010-04-18 Thread Sebastian Elsner
Try using QAbstractItemModel instead. ANd have a look at the table examples coming with PyQt. They helped me a lot. TheyAm 18.04.2010, 19:43 Uhr, schrieb Dom : Hi- I'm looking to create a table with checkable items based off a dictionary using the QStandardItemModel class, what is the bes

[PyQt] properly exiting application while still in init

2010-04-16 Thread Sebastian Elsner
Hello, In the __init__ method of a standard QDialog I check for some requirements to be fulfilled before the gui is shown (I communicate with a server over a QTcpSocket for that matter) If the conditions fail I want to exit the Application. How would I properly do that? Currently I tried:

Re: [PyQt] QAbstractItemModel causes segfault

2010-04-12 Thread Sebastian Elsner
*bump* No ideas on this one? On Wed, 07 Apr 2010 18:14:28 +0200, Sebastian Elsner wrote: One additional question: You wrote, that internalPointer() is not meant to be used outside of the model. But how would I get the associated object from a QModelIndex? I am using selectedIndex

[PyQt] connect every widget to one slot

2010-04-08 Thread Sebastian Elsner
Hello, i created a dialog with some widgets. Now I'd like to connect every widget to a slot, so when the user changes values (for lets say a spinbox) a "dirty" flag for the dialog is set. Is there a way to accomplish this without connecting every widget explicitly? regards Sebastian --

[PyQt] QAbstractItemModel causes segfault

2010-03-25 Thread Sebastian Elsner
Hello, I am using a QTreeView to display data coming from a sqlalchemy query. All is fine for displaying, but when I add rows, which also adds records to the database the "internal pointers", the QAbstractItemModel so heavily depends on, suddenly point to nowhere, because they don't keep st

[PyQt] simpletreemodel throwing error

2010-03-12 Thread Sebastian Elsner
Hello, the simple tree model example seems to work fine at first, but when closed the terminal prints: QObject::startTimer: QTimter can only be used with threads started with QThread I run the example unchanged from within Eclipse with Pydev using the latest PyQt 4.7 on Windows XP 64bit

[PyQt] Palette on QInputDialog

2010-02-11 Thread Sebastian Elsner
Hello, seems like palettes are not working on QInputDialogs. Please see the script attached. Setting a palette on an QErrorMessage works fine, but not on a InputDialog. Using PyQt 4.6.2 on Windows XP 64bit SP2 with python 2.6.4 32bit. from PyQt4 import QtCore from PyQt4 import QtGui cla