comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » PyQT widgets?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: PyQT widgets? [message #92415 is a reply to message #92409] Fri, 11 December 2015 09:10 Go to previous messageGo to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Friday, December 11, 2015 at 1:48:27 AM UTC-7, superchromix wrote:
> bump

Here you go! This is using IDL 8.5.1.

sys = Python.Import('sys')
QtGui = Python.Import('PyQt4.QtGui')
a = QtGui.QApplication(sys.argv)
w = QtGui.QWidget()
void = w.resize(320, 240)
void = w.setWindowTitle("Hello World!")
void = w.show()

Notes:
1. I modifed the Python example from:
https://pythonspot.com/pyqt4/
2. I'm using Anaconda 3, which comes with PyQt.
3. I have no idea how to handle events. That's left as an exercise for the reader. :-)

If you come up with more PyQt examples in IDL, please post them here!

Cheers,
Chris
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: help - cgimage revise x and y positions
Next Topic: Re: cgHistoplot and logarithmic axes

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 23:03:14 PDT 2025

Total time taken to generate the page: 0.48367 seconds