本文整理匯總了Python中GUI.dirchoise方法的典型用法代碼示例。如果您正苦於以下問題:Python GUI.dirchoise方法的具體用法?Python GUI.dirchoise怎麽用?Python GUI.dirchoise使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類GUI
的用法示例。
在下文中一共展示了GUI.dirchoise方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: open
# 需要導入模塊: import GUI [as 別名]
# 或者: from GUI import dirchoise [as 別名]
'''
Created on 28.01.2013
@author: Karbovnichiy-VY
'''
import filesys
import GUI
import os
if __name__ == '__main__':
filepath = GUI.filechoise()
f = filesys.FileSys(device = u"Oscilloscope")
data = filesys.Data(f.csvread(filepath), filepath)
signal = data.data[:,:]
savepath = GUI.dirchoise(2)
name = u"signal.csv"
with open(savepath + os.sep + name, 'wb') as csvfile:
f.csvwrite(csvfile, signal)
示例2: str
# 需要導入模塊: import GUI [as 別名]
# 或者: from GUI import dirchoise [as 別名]
import draw
import GUI
import sys
device = u"Oscilloscope"
outputlevel = 1
showplot = False
replot = False
plot_flag = True
report_flag = True
save_flag = True
platformd = {"linux2" : u"linux", "win32" : u"windows"}
dt = lambda x,y: " " + "in" + " " + str((y-x)/60) + " " + "min"
fileproc = filesys.FileSys(device,outputlevel)
filedir = GUI.dirchoise(1)
savepath = GUI.dirchoise(2)
t1 = time.clock()
data = []
for path in fileproc.filelist(filedir):
if outputlevel >= 1:
print path
measurment = filesys.Data(fileproc.csvread(path), path)
conn = database.opendb(savepath)
database.inittable(conn, tablename = "main")
database.insert(conn, measurment, tablename = "main")
data.append(measurment)
if measurment.a_flag == True and outputlevel >= 2:
print "attenuator!!!"
t2 = time.clock()