g+
g+ Communities
Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
<== Date ==> <== Thread ==>

Subject: Re: QT-based tools: Expressions of interest requested
From: Matt Newville <newville@cars.uchicago.edu>
To: Emmanuel Mayssat <emayssat@gmail.com>
Cc: tech-talk@aps.anl.gov
Date: Fri, 24 Feb 2012 16:01:26 -0600
Hi Emmanuel,

On Fri, Feb 24, 2012 at 11:37 AM, Emmanuel Mayssat <emayssat@gmail.com> wrote:
> pyQt widgets are traditionally written in C++ (native language of Qt) and
> wrapped for python using SIP.
> http://www.riverbankcomputing.com/software/sip/intro
>
> The best way to go about this Qt-epics is probably to
> 1/ pool all the C++ epics-aware widgets together
> 2/ develop SIP interface
>
> I don't know yet how the (excellent) pyepics package can play a role in this

For wx, we (Angus Gratton and I), subclassed many of the standard
wxPython classes to be associated with a PV.  For example,
PVStaticText is a wx.StaticText (~= Qt.QLabel) that has a PV
associated with it, including connection and monitor callbacks to
update the widget.   That is, when you create a PVStaticText, the
value displayed is always kept up-to-date, and connection state is
indicated by changing the background and foreground color.

I think that would be easy to do something similar with Qt (probably
easier than with wx)  and I think it could be done in python, without
C++.    That would make pyepics + python-Qt very easy to use.  I don't
know enough Qt  to do this on my own, but I'd be willing to help
someone interested in doing that. On the other hand, if there are
existing epics-aware subclasses of Qt widgets in C++, using something
like sip might be a good way to go.

Whether python has a place in a general purpose solution for a display
manager ala EDM/MEDM is different question.  It might be worth
considering, but a display manager is far outside my expertise.
Either way, as a current MEDM user, I'd very much be in favor of a
display manager based on Qt!

--Matt Newville

References:
QT-based tools: Expressions of interest requested Andrew Johnson
RE: QT-based tools: Expressions of interest requested ian.gillingham
Re: QT-based tools: Expressions of interest requested Emmanuel Mayssat
Re: QT-based tools: Expressions of interest requested Matt Newville
Re: QT-based tools: Expressions of interest requested Emmanuel Mayssat

Navigate by Date:
Prev: RE: CSS X-Y Graph Mark Rivers
Next: Re: QT-based tools: Expressions of interest requested Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
Navigate by Thread:
Prev: Re: QT-based tools: Expressions of interest requested Emmanuel Mayssat
Next: Re: QT-based tools: Expressions of interest requested Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·