本文整理汇总了Python中expeyes.eyeplot.pop_image函数的典型用法代码示例。如果您正苦于以下问题:Python pop_image函数的具体用法?Python pop_image怎么用?Python pop_image使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了pop_image函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: Label
t=Entry(cf, width=5, bg = 'white', textvariable = Npoints)
t.pack(side=LEFT, anchor = S)
Npoints.set('900')
l = Label(cf, text = _('Delay between samples='))
l.pack(side=LEFT)
Delay = StringVar()
t=Entry(cf, width=3, bg = 'white', textvariable = Delay)
t.pack(side=LEFT, anchor = S)
Delay.set('20')
l = Label(cf, text = _('uS.'))
l.pack(side=LEFT)
l = Label(cf, text = _('PVS ='))
l.pack(side=LEFT)
PVS = StringVar()
t=Entry(cf, width=5, bg = 'white', textvariable = PVS)
t.pack(side=LEFT, anchor = S)
PVS.set('3')
l = Label(cf, text = 'V')
l.pack(side=LEFT)
mf = Frame(root) # Message Frame below command frame.
mf.pack(side=TOP, anchor = SW)
msgwin = Label(mf,text = _('Messages'), fg = 'blue')
msgwin.pack(side=LEFT, anchor = SW)
eyeplot.pop_image('pics/am.png', _('Amplitude Modulation'))
root.title(_('Amplitude Modulation'))
root.mainloop()
开发者ID:abdul,项目名称:expeyes-programs,代码行数:29,代码来源:amfm.py
示例2: Entry
h = Entry(cf, width=5, bg="white", textvariable=Hstrings[k])
h.pack(side=LEFT)
Hstrings[k].set(str(hvals[k]))
l = Label(cf, text="cm")
l.pack(side=LEFT, anchor=SW)
b = Button(cf, text="Measure TOF", command=lambda i=k: get_tof(i))
b.pack(side=LEFT, anchor=N)
Results[k] = Label(cf, text=" " * 30)
Results[k].pack(side=LEFT, anchor=SW)
mf = Frame(root)
mf.pack(side=TOP, fill=BOTH, expand=1)
msgwin = Label(mf, text="Acceleration due to gravity by Time of Flight", fg="blue")
msgwin.pack(side=LEFT, anchor=S, fill=BOTH, expand=1)
cf = Frame(root)
cf.pack(side=TOP, fill=BOTH, expand=1)
b5 = Button(cf, text="FIT", command=calc_g)
b5.pack(side=LEFT, anchor=N)
b = Button(cf, text="Save to", command=save)
b.pack(side=LEFT, anchor=SW)
Fn = Entry(cf, width=10, bg="white")
Fn.pack(side=LEFT, anchor=SW)
Fn.insert(END, "gravity.dat")
b5 = Button(cf, text="QUIT", command=sys.exit)
b5.pack(side=RIGHT, anchor=N)
eyeplot.pop_image("pics/g-tof.png", "Gravity by TOF")
root.title("Gravity by Time of Flight")
root.mainloop()
开发者ID:raviola,项目名称:expeyes,代码行数:30,代码来源:gravity_tof2.py
示例3: _
g.setWorld(fmin, 0, fmax, 5.0, _("Freq"), _("Amp"))
cf = Frame(root, width=WIDTH, height=10)
cf.pack(side=TOP, fill=BOTH, expand=1)
b1 = Button(cf, text=_("START"), command=start)
b1.pack(side=LEFT, anchor=N)
b3 = Button(cf, text=_("SAVE to"), command=save)
b3.pack(side=LEFT, anchor=N)
filename = StringVar()
e1 = Entry(cf, width=15, bg="white", textvariable=filename)
filename.set("freq-response.dat")
e1.pack(side=LEFT)
R = Label(cf, text=_("Fmax = "))
R.pack(side=LEFT)
b5 = Button(cf, text=_("QUIT"), command=quit)
b5.pack(side=RIGHT, anchor=N)
b4 = Button(cf, text=_("CLEAR"), command=clear)
b4.pack(side=RIGHT, anchor=N)
b5 = Button(cf, text=_("Grace"), command=plotdata)
b5.pack(side=RIGHT, anchor=N)
mf = Frame(root, width=WIDTH, height=10)
mf.pack(side=TOP, fill=BOTH, expand=1)
msg = Label(mf, text=_("Connect Piezo from SQR1 to GND. Microphone to 16,15 & 31. Wire from 13 to 26"), fg="blue")
msg.pack(side=LEFT)
eyeplot.pop_image("pics/sound.png", _("Frequency Response Curve"))
root.title(_("Audio Frequency response Curve"))
root.mainloop()
开发者ID:emnik,项目名称:expeyes-programs,代码行数:30,代码来源:freq-response.py
示例4: Button
b4.pack(side = LEFT, anchor = N)
b = Button(cf,text =_('Save to'), command=save)
b.pack(side=LEFT, anchor = SW)
fn = Entry(cf,width = 10, bg = 'white')
fn.pack(side=LEFT, anchor = SW)
fn.insert(END,'rl.dat')
cf = Frame(root, width = WIDTH, height = 10)
cf.pack(side=TOP, fill = BOTH, expand = 1)
b = Button(cf,text =_('Xmgrace'), command=xmgrace)
b.pack(side=LEFT, anchor = SW)
l = Label(cf, text=_('Rext='))
l.pack(side=LEFT, anchor = SW)
Res = Entry(cf,width = 10, bg = 'white')
Res.pack(side=LEFT, anchor = SW)
Res.insert(END,'1000')
b = Button(cf,text =_('Calculate R/L'), command=fit_curve)
b.pack(side=LEFT, anchor = SW)
b = Button(cf,text =_('QUIT'), command=sys.exit)
b.pack(side=RIGHT, anchor = SW)
mf = Frame(root) # Message Frame below command frame.
mf.pack(side=TOP)
msgwin = Label(mf,text = '', fg = 'blue')
msgwin.pack(side=LEFT, anchor = S, fill=BOTH)
eyeplot.pop_image('pics/rl-tran.png', _('RL Circuit, Transient'))
root.title(_('Transient response of RL Circuit'))
root.mainloop()
开发者ID:raviola,项目名称:expeyes,代码行数:29,代码来源:RLcircuit.py
示例5: Label
Freq0.insert(END,'100')
l = Label(cf,text='SINE2=')
l.pack(side=LEFT, anchor=SW)
Freq = Entry(cf,width = 10, bg = 'white')
Freq.pack(side=LEFT, anchor = SW)
Freq.insert(END,'200')
Start = Button(cf,text =_('DRAW'), command = start, fg = 'blue')
Start.pack(side=LEFT, anchor = SW)
b = Button(cf,text =_('Save to'), command=save)
b.pack(side=LEFT, anchor = SW)
fn = Entry(cf,width = 10, bg = 'white')
fn.pack(side=LEFT, anchor = SW)
fn.insert(END,'lissajous.dat')
b = Button(cf,text =_('QUIT'), command=quit)
b.pack(side=RIGHT, anchor = SW)
mf = Frame(root) # Message Frame below command frame.
mf.pack(side=TOP, anchor = SW)
msgwin = Label(mf,text = _('Messages'), fg = 'blue')
msgwin.pack(side=LEFT, anchor = SW)
eyeplot.pop_image('pics/lissa.png', _('Lissajous Figures'))
root.title(_('EYES: Lissajous Figures'))
root.mainloop()
开发者ID:fossasia,项目名称:Pocket-Science-Lab,代码行数:30,代码来源:Lissajous.py
示例6: Label
e.pack(side = LEFT)
l = Label(cf, text='V')
l.pack(side=LEFT, anchor = SW )
b1 = Button(cf, text = _('START'), command = start)
b1.pack(side = LEFT, anchor = N)
b3 = Button(cf, text = _('SAVE to'), command = save)
b3.pack(side = LEFT, anchor = N)
filename = StringVar()
e1 =Entry(cf, width=15, bg = 'white', textvariable = filename)
filename.set('tran_ce.dat')
e1.pack(side = LEFT)
b5 = Button(cf, text = _('QUIT'), command = sys.exit)
b5.pack(side = RIGHT, anchor = N)
b4 = Button(cf, text = _('CLEAR'), command = clear)
b4.pack(side = RIGHT, anchor = N)
b5 = Button(cf, text = _('Grace'), command = xmgrace)
b5.pack(side = RIGHT, anchor = N)
#b5 = Button(cf, text = _('LINE'), command = load_line)
#b5.pack(side = RIGHT, anchor = N)
mf = Frame(root, width = WIDTH, height = 10)
mf.pack(side=TOP, fill = BOTH, expand = 1)
msg = Label(mf,text=_('Message'), fg = 'blue')
msg.pack(side=LEFT)
eyeplot.pop_image('pics/tran-ce.png', _('Transistor CE Char (NPN)'))
root.title(_('EYES: Transistor CE characteristics'))
root.mainloop()
开发者ID:raviola,项目名称:expeyes,代码行数:29,代码来源:transistor.py
示例7: Frame
cf = Frame(root, width = WIDTH, height = 10)
cf.pack(side=TOP, fill = BOTH, expand = 1)
b1 = Button(cf, text = _('START'), command = start)
b1.pack(side = LEFT, anchor = N)
b3 = Button(cf, text = _('SAVE to'), command = save)
b3.pack(side = LEFT, anchor = N)
filename = StringVar()
e1 =Entry(cf, width=15, bg = 'white', textvariable = filename)
filename.set('freq-response.dat')
e1.pack(side = LEFT)
R = Label(cf,text=_('Fmax = '))
R.pack(side=LEFT)
b5 = Button(cf, text = _('QUIT'), command = quit)
b5.pack(side = RIGHT, anchor = N)
b4 = Button(cf, text = _('CLEAR'), command = clear)
b4.pack(side = RIGHT, anchor = N)
b5 = Button(cf, text = _('Grace'), command = xmgrace)
b5.pack(side = RIGHT, anchor = N)
mf = Frame(root, width = WIDTH, height = 10)
mf.pack(side=TOP, fill = BOTH, expand = 1)
msg = Label(mf,text=_('Connect Piezo from SQR1 to GND. Microphone to 16,15 & 31. Wire from 13 to 26'), fg = 'blue')
msg.pack(side=LEFT)
eyeplot.pop_image('pics/freq-resp.png', _('Frequency Response Curve'))
root.title(_('Audio Frequency response Curve'))
root.mainloop()
开发者ID:ArunJayan,项目名称:expeyes-programs,代码行数:28,代码来源:freq-response.py
示例8: get_tof
def get_tof():
t = p.pulse2rtime(1,2)
if t > 0:
res.config(text = _('%8.6f sec')%(t*1.0e-6))
else:
res.config(text = _('Error..'))
p = eyes.open()
p.disable_actions()
root = Tk()
cf = Frame(root)
cf.pack(side=TOP, fill = BOTH, expand = 1)
Label(cf,text = _('Connect Transmitter from OD1 to Ground')).pack()
Label(cf,text = _('Connect Receiver from T15 to Ground')).pack()
Label(cf,text = _('Keep them facing each other, at a known distance')).pack()
b1 = Button(cf, text = _('Measure Time of Travel'), command = get_tof)
b1.pack(side = TOP, anchor = N)
res = Label(cf, text = '')
res.pack(side = TOP, anchor = N)
b5 = Button(cf, text = _('QUIT'), command = sys.exit)
b5.pack(side = TOP, anchor = N)
eyeplot.pop_image('pics/xxxxx.png', _('Velocity of Sound, 40kHz'))
root.title(_('Velocity of Sound'))
root.mainloop()
开发者ID:fossasia,项目名称:Pocket-Science-Lab,代码行数:28,代码来源:velocityofsoundUsingPiezo.py
示例9: get_tof
def get_tof():
t = p.pulse2rtime(1,2)
if t > 0:
res.config(text = _('%8.6f sec')%(t*1.0e-6))
else:
res.config(text = _('Error..'))
p = eyes.open()
p.disable_actions()
root = Tk()
cf = Frame(root)
cf.pack(side=TOP, fill = BOTH, expand = 1)
Label(cf,text = _('Connect Transmitter from OD1 to Ground')).pack()
Label(cf,text = _('Connect Receiver from T15 to Ground')).pack()
Label(cf,text = _('Keep them facing each other, at a known distance')).pack()
b1 = Button(cf, text = _('Measure Time of Travel'), command = get_tof)
b1.pack(side = TOP, anchor = N)
res = Label(cf, text = '')
res.pack(side = TOP, anchor = N)
b5 = Button(cf, text = _('QUIT'), command = sys.exit)
b5.pack(side = TOP, anchor = N)
eyeplot.pop_image('pics/ultra-sound.png', 'Velocity of Sound, 40kHz')
root.title(_('Velocity of Sound'))
root.mainloop()
开发者ID:raviola,项目名称:expeyes,代码行数:28,代码来源:usound_tof.py
示例10: Frame
cf = Frame(root, width = WIDTH, height = 10)
cf.pack(side=TOP, fill = BOTH, expand = 1)
cf = Frame(root, width = WIDTH, height = 10)
cf.pack(side=TOP, fill = BOTH, expand = 1)
e1.pack(side = LEFT)
b3 = Label(cf, text = _(' RED Line - Temperature in Celsius'), fg = 'red')
b3.pack(side = LEFT, anchor = SW)
b3 = Label(cf, text = _(' BLUE Line - Relative Humidity in %'), fg = 'blue') # Add info for other data lines
b3.pack(side = LEFT, anchor = SW)
b5 = Button(cf, text = _('QUIT'), command = pt.quit)
b5.pack(side = RIGHT, anchor = N)
b4 = Button(cf, text = _('CLEAR'), command = pt.clear)
b4.pack(side = RIGHT, anchor = N)
b1 = Button(cf, text = _('STOP'), command = pt.stop)
b1.pack(side = RIGHT, anchor = N)
b1 = Button(cf, text = _('START'), command = pt.start)
b1.pack(side = RIGHT, anchor = N)
mf = Frame(root, width = WIDTH, height = 10)
mf.pack(side=TOP)
msgwin = Label(mf,text=_('Message'), fg = 'blue')
msgwin.pack(side=LEFT, anchor = S, fill=BOTH, expand=1)
eyeplot.pop_image('pics/image-name.png', _('---')) # save the image in the same directory as of the program
root.title(_('ExpEYES- Weather Station Data Logger'))
root.mainloop()
开发者ID:emnik,项目名称:Pocket-Science-Lab,代码行数:30,代码来源:Weather-Data-Logger.py
示例11: Button
NMAX.set('10')
b1 = Button(cf, text = _('START'), command = pen.start)
b1.pack(side = TOP, anchor = W)
b1 = Button(cf, text = _('STOP'), command = pen.stop)
b1.pack(side = TOP, anchor = W)
b4 = Button(cf, text = _('CLEAR'), command = pen.clear)
b4.pack(side = TOP, anchor = W)
b3 = Button(cf, text = _('SAVE to'), command = pen.save)
b3.pack(side = TOP, anchor = W)
filename = StringVar()
e1 =Entry(cf, width=10, bg = 'white', textvariable = filename)
filename.set('photogate.dat')
e1.pack(side = TOP)
b1 = Button(cf, text = _('Xmgrace'), command = pen.xmgrace)
b1.pack(side = TOP, anchor = W)
b5 = Button(cf, text = _('QUIT'), command = sys.exit)
b5.pack(side = TOP, anchor = W)
Result = Text(top, width=15, height=16) # make plot objects using draw.disp
Result.pack(side=LEFT)
mf = Frame(root, width = WIDTH, height = 10)
mf.pack(side=TOP)
msgwin = Label(mf,text=_('Message'), fg = 'blue')
msgwin.pack(side=LEFT, anchor = S, fill=BOTH, expand=1)
eyeplot.pop_image('pics/xyz.png', _('xyz'))
root.title(_('EYES Junior: Photogate'))
root.mainloop()
开发者ID:emnik,项目名称:Pocket-Science-Lab,代码行数:29,代码来源:photo-gate.py
示例12: Button
cf.pack(side=TOP, fill = BOTH, expand = 1)
b1 = Button(cf, text = _('START'), command = pen.start)
b1.pack(side = LEFT, anchor = N)
b1 = Button(cf, text = _('STOP'), command = pen.stop)
b1.pack(side = LEFT, anchor = N)
b1 = Button(cf, text = _('FIT'), command = pen.fit_curve)
b1.pack(side = LEFT, anchor = N)
b4 = Button(cf, text = _('CLEAR'), command = pen.clear)
b4.pack(side = LEFT, anchor = N)
b1 = Button(cf, text = _('Xmgrace'), command = pen.xmgrace)
b1.pack(side = LEFT, anchor = N)
b3 = Button(cf, text = _('SAVE to'), command = pen.save)
b3.pack(side = LEFT, anchor = N)
filename = StringVar()
e1 =Entry(cf, width=15, bg = 'white', textvariable = filename)
filename.set('pendulum.dat')
e1.pack(side = LEFT)
b5 = Button(cf, text = _('QUIT'), command = sys.exit)
b5.pack(side = RIGHT, anchor = N)
mf = Frame(root, width = WIDTH, height = 10)
mf.pack(side=TOP)
msgwin = Label(mf,text=_('Message'), fg = 'blue')
msgwin.pack(side=LEFT, anchor = S, fill=BOTH, expand=1)
eyeplot.pop_image('pics/pend-wave.png', _('Pendulum Oscillations'))
root.title(_('Oscillations of Pendulum'))
root.mainloop()
开发者ID:oviminal,项目名称:expeyes-programs,代码行数:29,代码来源:pendulum.py
示例13: Checkbutton
cb1 = Checkbutton(cf,text =_('Wait for HIGH on IN1'), variable=WAIT, fg = 'blue')
cb1.pack(side=LEFT, anchor = SW)
WAIT.set(0)
b = Button(cf,text =_('Start Scanning'), command= base_scan)
b.pack(side=LEFT, anchor = SW)
b4 = Button(cf, text = _('CLEAR'), command = clear)
b4.pack(side = LEFT, anchor = N)
b = Button(cf,text =_('VIEW'), command=viewall)
b.pack(side=LEFT, anchor = SW)
b = Button(cf,text =_('XmGrace'), command=xmgrace)
b.pack(side=LEFT, anchor = SW)
b = Button(cf,text =_('Save to'), command=save)
b.pack(side=LEFT, anchor = SW)
fn = Entry(cf,width = 10, bg = 'white')
fn.pack(side=LEFT, anchor = SW)
fn.insert(END,'sound.dat')
b = Button(cf,text =_('QUIT'), command=quit)
b.pack(side=LEFT, anchor = SW)
mf = Frame(root) # Message Frame below command frame.
mf.pack(side=TOP, anchor = SW)
msgwin = Label(mf,text = _('Messages'), fg = 'blue')
msgwin.pack(side=LEFT, anchor = SW)
eyeplot.pop_image('pics/sound-burst.png', _('Capture a burst of sound'))
root.title(_('EYESJUN: Capturing burst of sound'))
root.mainloop()
开发者ID:ArunJayan,项目名称:expeyes-programs,代码行数:29,代码来源:sound-burst.py
示例14: Frame
b3.pack(side = LEFT, anchor = SW)
cf = Frame(root, width = WIDTH, height = 10)
cf.pack(side=TOP, fill = BOTH, expand = 1)
b1 = Button(cf, text = _('START'), command = pen.start)
b1.pack(side = LEFT, anchor = N)
b1 = Button(cf, text = _('STOP'), command = pen.stop)
b1.pack(side = LEFT, anchor = N)
b4 = Button(cf, text = _('CLEAR'), command = pen.clear)
b4.pack(side = LEFT, anchor = N)
b1 = Button(cf, text = _('Xmgrace'), command = pen.xmgrace)
b1.pack(side = LEFT, anchor = N)
b3 = Button(cf, text = _('SAVE to'), command = pen.save)
b3.pack(side = LEFT, anchor = N)
filename = StringVar()
e1 =Entry(cf, width=15, bg = 'white', textvariable = filename)
filename.set('coupledpend.dat')
e1.pack(side = LEFT)
b5 = Button(cf, text = _('QUIT'), command = sys.exit)
b5.pack(side = RIGHT, anchor = N)
mf = Frame(root, width = WIDTH, height = 10)
mf.pack(side=TOP)
msgwin = Label(mf,text=_('Message'), fg = 'blue')
msgwin.pack(side=LEFT, anchor = S, fill=BOTH, expand=1)
eyeplot.pop_image('pics/image-name.png', _('Coupled Pendulum Oscillations')) # save the image in the same directory as of the program
root.title(_('Oscillations of Coupled Pendulums'))
root.mainloop()
开发者ID:wavicles,项目名称:Plugins-for-ExpEYES,代码行数:30,代码来源:coupled-pend-realtime.py
示例15: Button
b1 = Button(cf, text = _('START'), command = start)
b1.pack(side = LEFT, anchor = N)
b3 = Button(cf, text = _('SAVE to'), command = save)
b3.pack(side = LEFT, anchor = N)
filename = StringVar()
e1 =Entry(cf, width=15, bg = 'white', textvariable = filename)
filename.set('lediv.dat')
e1.pack(side = LEFT)
b5 = Button(cf, text = _('QUIT'), command = sys.exit)
b5.pack(side = RIGHT, anchor = N)
b4 = Button(cf, text = _('CLEAR'), command = clear)
b4.pack(side = RIGHT, anchor = N)
b5 = Button(cf, text = _('Grace'), command = xmgrace)
b5.pack(side = RIGHT, anchor = N)
b5 = Button(cf, text = _('FIT'), command = fit_curve)
b5.pack(side = RIGHT, anchor = N)
mf = Frame(root, width = WIDTH, height = 10)
mf.pack(side=TOP, fill = BOTH, expand = 1)
msg = Label(mf,text=_('Message'), fg = 'blue')
msg.pack(side=LEFT)
eyeplot.pop_image('pics/LED_iv.png', _('LED IV char. Connections'))
root.title(_('EYES: LED IV characteristics'))
root.mainloop()
开发者ID:raviola,项目名称:expeyes,代码行数:27,代码来源:LED_iv.py
示例16: _
g.setWorld(0, 0, vmax, imax, "V", _("mA"))
cf = Frame(root, width=WIDTH, height=10)
cf.pack(side=TOP, fill=BOTH, expand=1)
b1 = Button(cf, text=_("START"), command=start)
b1.pack(side=LEFT, anchor=N)
b3 = Button(cf, text=_("SAVE to"), command=save)
b3.pack(side=LEFT, anchor=N)
filename = StringVar()
e1 = Entry(cf, width=15, bg="white", textvariable=filename)
filename.set("resistor_iv.dat")
e1.pack(side=LEFT)
R = Label(cf, text="R = ")
R.pack(side=LEFT)
b5 = Button(cf, text=_("QUIT"), command=quit)
b5.pack(side=RIGHT, anchor=N)
b4 = Button(cf, text=_("CLEAR"), command=clear)
b4.pack(side=RIGHT, anchor=N)
b5 = Button(cf, text=_("Grace"), command=xmgrace)
b5.pack(side=RIGHT, anchor=N)
mf = Frame(root, width=WIDTH, height=10)
mf.pack(side=TOP, fill=BOTH, expand=1)
msg = Label(mf, text=_("Message"), fg="blue")
msg.pack(side=LEFT)
eyeplot.pop_image("pics/res-measure.png", _("Resistor IV char. Connections"))
root.title(_("EYES: Resistor IV characteristics"))
root.mainloop()
开发者ID:raviola,项目名称:expeyes,代码行数:30,代码来源:resistor_iv.py
示例17: IntVar
RUN = IntVar()
RS = Checkbutton(cf,text =_('START'), command = start, variable= RUN, fg = 'blue')
RS.pack(side=LEFT, anchor = SW)
RUN.set(0)
b = Button(cf,text =_('Xmgrace'), command=xmgrace)
b.pack(side=LEFT, anchor = SW)
b = Button(cf,text =_('FFT'), command=do_fft)
b.pack(side=LEFT, anchor = SW)
b = Button(cf,text =_('Save to'), command=save)
b.pack(side=LEFT, anchor = SW)
fn = Entry(cf,width = 10, bg = 'white')
fn.pack(side=LEFT, anchor = SW)
fn.insert(END,'sound.dat')
b = Button(cf,text =_('QUIT'), command=quit)
b.pack(side=RIGHT, anchor = SW)
mf = Frame(root) # Message Frame below command frame.
mf.pack(side=TOP, anchor = SW)
msgwin = Label(mf,text = _('Messages'), fg = 'blue')
msgwin.pack(side=LEFT, anchor = SW)
eyeplot.pop_image('pics/sound-beats.png', _('Sound Interference'))
root.title(_('EYES: Interference of Sound'))
root.mainloop()
开发者ID:ArunJayan,项目名称:expeyes-programs,代码行数:28,代码来源:interference-sound.py
示例18: Label
l = Label(cf,text=_('Freq='))
l.pack(side=LEFT, anchor= SW)
Freq = Entry(cf,width = 10, bg = 'white')
Freq.pack(side=LEFT, anchor = SW)
Freq.insert(END,'4000')
b = Button(cf,text =_('Xmgrace'), command=xmgrace)
b.pack(side=LEFT, anchor = SW)
b = Button(cf,text =_('FFT'), command=do_fft)
b.pack(side=LEFT, anchor = SW)
b = Button(cf,text =_('Save to'), command=save)
b.pack(side=LEFT, anchor = SW)
fn = Entry(cf,width = 10, bg = 'white')
fn.pack(side=LEFT, anchor = SW)
fn.insert(END,'sound.dat')
b = Button(cf,text =_('QUIT'), command=quit)
b.pack(side=RIGHT, anchor = SW)
mf = Frame(root) # Message Frame below command frame.
mf.pack(side=TOP, anchor = SW)
msgwin = Label(mf,text = _('Messages'), fg = 'blue')
msgwin.pack(side=LEFT, anchor = SW)
eyeplot.pop_image('pics/sound-vel.png', _('Velocity of Sound'))
root.title(_('EYES: Velocity of Sound'))
root.mainloop()
开发者ID:raviola,项目名称:expeyes,代码行数:29,代码来源:velocity-sound.py
示例19: Frame
cf = Frame(root, width = WIDTH, height = 10)
cf.pack(side=TOP, fill = BOTH, expand = 1)
b1 = Button(cf, text = _('START'), command = start)
b1.pack(side = LEFT, anchor = N)
b3 = Button(cf, text = _('SAVE to'), command = save)
b3.pack(side = LEFT, anchor = N)
filename = StringVar()
e1 =Entry(cf, width=15, bg = 'white', textvariable = filename)
filename.set('tran_ce.dat')
e1.pack(side = LEFT)
b5 = Button(cf, text = _('QUIT'), command = sys.exit)
b5.pack(side = RIGHT, anchor = N)
b4 = Button(cf, text = _('CLEAR'), command = clear)
b4.pack(side = RIGHT, anchor = N)
b5 = Button(cf, text = _('Grace'), command = xmgrace)
b5.pack(side = RIGHT, anchor = N)
#b5 = Button(cf, text = _('LINE'), command = load_line)
#b5.pack(side = RIGHT, anchor = N)
mf = Frame(root, width = WIDTH, height = 10)
mf.pack(side=TOP, fill = BOTH, expand = 1)
msg = Label(mf,text=_('Message'), fg = 'blue')
msg.pack(side=LEFT)
eyeplot.pop_image('pics/phtran-ce.png', _('Photo Transistor CE Char.'))
root.title(_('EYES: Photo-transistor CE characteristics'))
root.mainloop()
开发者ID:ArunJayan,项目名称:expeyes-programs,代码行数:29,代码来源:phototransistor.py
示例20: Label
Tlab = Label(cf, text = 'deg C')
Tlab.pack(side = LEFT, anchor = SW)
b1 = Button(cf, text = 'START', command = pt.start)
b1.pack(side = LEFT, anchor = N)
b1 = Button(cf, text = 'STOP', command = pt.stop)
b1.pack(side = LEFT, anchor = N)
b4 = Button(cf, text = 'CLEAR', command = pt.clear)
b4.pack(side = LEFT, anchor = N)
b1 = Button(cf, text = 'Xmgrace', command = pt.xmgrace)
b1.pack(side = LEFT, anchor = N)
b3 = Button(cf, text = 'SAVE to', command = pt.save)
b3.pack(side = LEFT, anchor = N)
filename = StringVar()
e1 =Entry(cf, width=15, bg = 'white', textvariable = filename)
filename.set('tempcon.dat')
e1.pack(side = LEFT)
b5 = Button(cf, text = 'QUIT', command = sys.exit)
b5.pack(side = RIGHT, anchor = N)
mf = Frame(root, width = WIDTH, height = 10)
mf.pack(side=TOP)
msgwin = Label(mf,text='Message', fg = 'blue')
msgwin.pack(side=LEFT, anchor = S, fill=BOTH, expand=1)
eyeplot.pop_image('pics/temp-control.png', 'Temperature Controller (LM35)')
root.title('Temperature controller using LM35')
root.mainloop()
开发者ID:raviola,项目名称:expeyes,代码行数:29,代码来源:temp-controller.py
注:本文中的expeyes.eyeplot.pop_image函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论