Example #1
0
def callback():
    print "click!"


notebook = Pmw.NoteBook(root, borderwidth=2, pagemargin=2)
notebook.pack(fill='both', expand=1)

DAQCpresent = range(8)
daqc = range(8)
DAQCFoundCount = 0
#daqcpage=range(8)

SampleTmin = 0
for i in range(0, 8):
    rtn = DAQC.getADDR(i)
    if ((rtn - 8) == i):
        DAQCpresent[i] = 1
        DAQCFoundCount += 1
        DAQC.setDOUTall(i, 0)
        DAQC.setPWM(i, 0, 0)
        DAQC.setPWM(i, 1, 0)
        page = notebook.add('DAQC' + str(i))
        notebook.tab('DAQC' + str(i)).focus_set()
        daqc[i] = daqcDASH(page, i)
        SampleTmin += 0.2
    else:
        DAQCpresent[i] = 0

if (SampleTmin > 0):
    SampleT = SampleTmin