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 #92436 is a reply to message #92420] Tue, 15 December 2015 18:32 Go to previous messageGo to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Saturday, December 12, 2015 at 2:44:21 AM UTC-7, superchromix wrote:
> 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?

It looks like IDL 8.5.1 just went live today!
-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: Wed Oct 08 16:09:29 PDT 2025

Total time taken to generate the page: 0.00409 seconds