def refresh(self): tname = self.va.get() O = dacon.Out() data = O.get_enofa_lists(tname) self.libox.delete(0, END) for li in data: self.libox.insert(END, li)
def listing_data(self): listframe = Frame(self.win) listframe.pack() tname = self.va.get() O = dacon.Out() data = O.get_enofa_lists(tname) self.libox = Listbox(listframe) for li in data: self.libox.insert(END, li) self.libox.pack()
def UI_head(self): headframe = Frame(self.win) headframe.pack() O = dacon.Out() enofaref = O.get_enofa_ref() d_tname = enofaref["tname"] option = [" "] for li in d_tname: print li option.append(str(li)) self.va = StringVar() self.va.set(option[0]) head_om = apply(OptionMenu, (headframe, self.va) + tuple(option)) head_om.pack() head_btn = Button(headframe, text="refresh", command=self.refresh) head_btn.pack() s_btn = Button(headframe, text="spliting", command=self.spliting_print) s_btn.pack()
def spliting_print(self): tname = self.va.get() O = dacon.Out() data = O.spliting_data(tname)
def getlist(self): O = dacon.Out() listdata = O.get_list_csv() #listdata = ["1.csv", "2.csv"] return listdata
def __init__(self): self.O = dacon.Out()