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 #92564 is a reply to message #92436] Thu, 14 January 2016 14:54 Go to previous messageGo to previous message
Jim  Pendleton is currently offline  Jim Pendleton
Messages: 165
Registered: November 2011
Senior Member
On Tuesday, December 15, 2015 at 7:32:28 PM UTC-7, Chris Torrence wrote:
> 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

A couple blog posts covering some of this are now available on the IDL Data Point web site:
http://www.exelisvis.com/Company/PressRoom/Blogs/IDLDataPoin t.aspx

Look for posts from October 2015 and January 2016.

Jim P.
[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 14:10:31 PDT 2025

Total time taken to generate the page: 0.00367 seconds