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 #92420 is a reply to message #92415] Sat, 12 December 2015 01:44 Go to previous messageGo to previous message
markb77 is currently offline  markb77
Messages: 217
Registered: July 2006
Senior Member
On Friday, December 11, 2015 at 6:10:26 PM UTC+1, Chris Torrence wrote:
> 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

thanks Chris! I will have a look at this - maybe I can figure out how to handle the events.

Is IDL 8.5.1 released?
[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: Wed Oct 08 18:24:26 PDT 2025

Total time taken to generate the page: 0.00398 seconds