Changeset 833
- Timestamp:
- Apr 26, 2012 10:30:26 AM (12 years ago)
- Location:
- moxy/trunk/src/moxy
- Files:
-
- 1 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
moxy/trunk/src/moxy/m_axis.py
r780 r833 123 123 124 124 125 # - - - - - - - - - - - - - - - - - - main 126 127 128 if __name__ == '__main__': 125 def _demo_(): 126 '''demonstrate use of this module''' 129 127 from time import sleep 130 128 pv = "prj:m1" … … 158 156 __demo_waitmove(non_motor.axis, position=1.1, seconds=5) 159 157 non_motor.disconnect() 158 159 # - - - - - - - - - - - - - - - - - - main 160 161 162 if __name__ == '__main__': 163 _demo_() -
moxy/trunk/src/moxy/m_pv.py
r780 r833 167 167 168 168 169 # - - - - - - - - - - - - - - - - - - main 170 171 172 if __name__ == '__main__': 169 def _demo_(): 170 '''demonstrate use of this module''' 173 171 pv = "prj:m1" 174 172 if not pvIsAvailable(pv): … … 184 182 sleep(2.5) 185 183 __demo_waitmove(pv, position=1.1, seconds=5) 184 185 # - - - - - - - - - - - - - - - - - - main 186 187 188 if __name__ == '__main__': 189 _demo_() -
moxy/trunk/src/moxy/m_set.py
r781 r833 91 91 # - - - - - - - - - - - - - - - - - - methods 92 92 93 94 # - - - - - - - - - - - - - - - - - - main 95 96 97 if __name__ == '__main__': 93 def _demo_(): 94 '''demonstrate use of this module''' 98 95 aset = AxesSet( 99 96 name = 'test motion axes set', … … 111 108 aset.connect() 112 109 aset.report() 110 111 # - - - - - - - - - - - - - - - - - - main 112 113 114 if __name__ == '__main__': 115 _demo_() -
moxy/trunk/src/moxy/m_settings.py
r780 r833 86 86 # - - - - - - - - - - - - - - - - - - methods 87 87 88 89 # - - - - - - - - - - - - - - - - - - main 90 91 92 if __name__ == '__main__': 88 def _demo_(): 89 '''demonstrate use of this module''' 93 90 row = Row() 94 91 print row.label … … 98 95 tbl.add_row() 99 96 print [r.label for r in tbl.rows] 97 98 # - - - - - - - - - - - - - - - - - - main 99 100 101 if __name__ == '__main__': 102 _demo_() -
moxy/trunk/src/moxy/paxis.py
r780 r833 135 135 # - - - - - - - - - - - - - - - - - - methods 136 136 137 138 # - - - - - - - - - - - - - - - - - - main 139 140 141 if __name__ == '__main__': 142 '''show how to use this class''' 137 def _demo_(): 138 '''demonstrate use of this module''' 143 139 s = 'prj:m2.' 144 140 m1 = PAxis(s+'VAL', s+'RBV', s+'DESC', s+'EGU', s+'DMOV', s+'STOP') … … 151 147 print m1._nonpvs 152 148 print m1._init 149 150 # - - - - - - - - - - - - - - - - - - main 151 152 153 if __name__ == '__main__': 154 _demo_() -
moxy/trunk/src/moxy/template.py
r780 r833 34 34 # - - - - - - - - - - - - - - - - - - methods 35 35 36 def _demo_(): 37 '''demonstrate use of this module''' 38 pass 39 36 40 37 41 # - - - - - - - - - - - - - - - - - - main … … 39 43 40 44 if __name__ == '__main__': 41 pass45 _demo_() -
moxy/trunk/src/moxy/vc_axis.py
r781 r833 19 19 # - - - - - - - - - - - - - - - - - - Imports 20 20 21 22 import wx 21 import wx #@UnusedImport 23 22 import wx.lib.buttons 24 23 import wx.lib.stattext … … 755 754 756 755 757 # - - - - - - - - - - - - - - - - - - main 758 759 760 if __name__ == '__main__': 756 def _demo_(): 757 '''demonstrate use of this module''' 761 758 axis = m_axis.SingleAxis( name='test axis', val='prj:m1' ) 762 759 app = wx.App() 763 760 DemoFrame( None, axis ).Show() 764 761 app.MainLoop() 762 763 764 # - - - - - - - - - - - - - - - - - - main 765 766 767 if __name__ == '__main__': 768 _demo_() -
moxy/trunk/src/moxy/vc_pv.py
r758 r833 20 20 21 21 22 import wx 22 import wx #@UnusedImport 23 23 import wx.lib.buttons 24 24 import wx.lib.stattext … … 249 249 250 250 251 # - - - - - - - - - - - - - - - - - - main 252 253 254 if __name__ == '__main__': 251 def _demo_(): 252 '''demonstrate use of this module''' 255 253 app = wx.App() 256 254 fr = DemoView('Godzilla') … … 261 259 fr.Show() 262 260 app.MainLoop() 261 262 263 # - - - - - - - - - - - - - - - - - - main 264 265 266 if __name__ == '__main__': 267 _demo_() -
moxy/trunk/src/moxy/vc_set.py
r781 r833 20 20 21 21 22 import wx 23 import wx.lib.buttons 24 import wx.lib.stattext 25 import m_pv 22 import wx #@UnusedImport 23 import wx.lib.buttons #@UnusedImport 24 import wx.lib.stattext #@UnusedImport 25 import m_pv #@UnusedImport 26 26 import m_axis 27 27 import m_set … … 120 120 121 121 122 # - - - - - - - - - - - - - - - - - - main 123 124 125 if __name__ == '__main__': 122 def _demo_(): 123 '''demonstrate use of this module''' 126 124 config = [ 127 125 {'name': "*X*", 'val': "prj:m1", 'isMotorRecord': True}, … … 140 138 app.MainLoop() 141 139 140 141 # - - - - - - - - - - - - - - - - - - main 142 143 144 if __name__ == '__main__': 145 _demo_()
Note: See TracChangeset
for help on using the changeset viewer.