[PyQt] QTimer.singleShot

2009-10-06 Thread Jason H
I have a GUI application and I want to trigger an event after my GUI starts: if __name__=="__main__": a = QApplication(sys.argv) m=Main(False) m.show() a.exec_() I put "QTimer.singleShot(0, self.start)" after the m __init__ialization, both in the class, and I also tried it

[PyQt] Unexpected segfault when using QSortFilterProxyModel with a QFileDialog

2009-10-06 Thread Dave Peterson
I must be doing something brain dead but I'm not sure what. When I display a QFileDialog after having set a proxy model, I get a seg fault when the QFileDialog tries to save it's state. Here's the top of the stacktrace -- perhaps there is enough info here for someone else to be able to tell

[PyQt] other problem pyqt 4.6

2009-10-06 Thread Linos
and other code sample as well, if i execute this code i get this error for every connect i try to do in the QThread run() method. QObject: Cannot create children for a parent that is in a different thread. (Parent is TestThread(0x99e09b8), parent's thread is QThread(0x98e60f0), current thread i

[PyQt] pyqt 4.6 error

2009-10-06 Thread Linos
Hello, i have updated versions to sip 4.9 and pyqt 4.6 and finally i have some time to make reproducible examples of the errors i posted to the mailing list some time ago, this code gives me on my machine (Arch Linux, qt 4.5.2, sip 4.9, pyqt 4.6 and python 2.6.3) this error when i push the but

[PyQt] tables and spreadsheet examples in PyQT

2009-10-06 Thread Giorgio Luciano
can someone point to examples of spreadsheet made in PyQT or PyQt tables examples with "advanced" features ? I've searched around but it doesnt' seem too much things exists. Thanks in advance Giorgio -- View this message in context: http://www.nabble.com/tables-and-spreadsheet-examples-in-PyQT-t

Re: [PyQt] QGridLayout AlignRight problem

2009-10-06 Thread Michael Held
sorry for the confusion, the problem has nothing to do with the alignment, but with a column- span > 1. I modified the example. w_label is expanding, or better not all space is consumed by w_frame but by both layout = QGridLayout(parent) w_label = QLabel(label, parent) w_frame = QFrame(pare

[PyQt] QGridLayout AlignRight problem

2009-10-06 Thread Michael Held
hi PyQt, I have a problem with QGridLayout and AlignRight when enforcing a non- expanding behavior of QLabel. this example works as expected: w_label is left-aligned, w_frame is expands horizontally, w_label not layout = QGridLayout(parent) w_label = QLabel(label, parent) w_frame = QFrame(

Re: [PyQt] How to show maps in GUI and get coordinates with clicks

2009-10-06 Thread Antonio Valentino
Il giorno Mon, 5 Oct 2009 16:33:37 -0400 "Echavarria Gregory, Maria Angelica" ha scritto: > Good afternoon group, > > I have my working GUI programmed in PyQt. Now I need to: > > 1. show a map (raster image) as foreground in my QGraphicsView with a > specified coordinate pair in the middle of t

Re: [PyQt] Re: How to show maps in GUI and get coordinates with clicks

2009-10-06 Thread Antonio Valentino
Il giorno Tue, 6 Oct 2009 10:22:37 -0400 "Echavarria Gregory, Maria Angelica" ha scritto: > Hugo thanks for your answer, however: > > The QGraphicsView widget and subclass for the scene were already > created, and the main image displays good. I'm looking for help for > getting georeferenced-dis

[PyQt] Re: How to show maps in GUI and get coordinates with clicks

2009-10-06 Thread Echavarria Gregory, Maria Angelica
Hugo thanks for your answer, however: The QGraphicsView widget and subclass for the scene were already created, and the main image displays good. I'm looking for help for getting georeferenced-display of the foreground (on top of the previous)... I have a collection of GeoTIFF maps (NOAA nautic