Changeset 834 for moxy/trunk


Ignore:
Timestamp:
Apr 26, 2012 10:45:32 AM (12 years ago)
Author:
jemian
Message:

This is an EPICS PV Probe example

File:
1 moved

Legend:

Unmodified
Added
Removed
  • moxy/trunk/src/moxy/wx_pvprobe.py

    r833 r834  
    2020
    2121
    22 class PvWatch(wx.Panel):
     22class PvProbe(wx.Panel):
    2323    def __init__(self, parent, pv_list):
    2424        wx.Panel.__init__(self, parent)
     
    3535            sizer.Add(mp, 0, wx.EXPAND)
    3636
    37         #p.Fit()     # needed to get initial size right
    38         #self.Fit()    # needed to get initial size right
    39 
    4037
    4138class TheFrame(wx.Frame):
     
    4340        title = "things: " + " ".join(pv_list)
    4441        wx.Frame.__init__(self, None, title=title)
    45         PvWatch(self, pv_list)
     42        PvProbe(self, pv_list)
    4643
    4744
    48 if __name__ == '__main__':
     45def _demo_():
     46    '''demonstrate use of this module'''
    4947    #m1 = epics.Motor('prj:m1')
    5048    #pprint.pprint( m1.get_info() )
     
    5351        TheFrame(sys.argv[1:]).Show()
    5452    else:
    55         TheFrame(['prj:m1.RBV', 'prj:m2.RBV']).Show()
     53        TheFrame(['prj:datetime', 'prj:m1.RBV', 'prj:m2.RBV']).Show()
    5654    app.MainLoop()
     55
     56
     57if __name__ == '__main__':
     58    _demo_()
Note: See TracChangeset for help on using the changeset viewer.