from Tkinter import * import tkMessageBox from PIL import ImageTk, Image import pickle import UI from Core.DA import DA from Core.PG import PGMain data_analyzer = DA.DA() ui = UI.UI() tpb = UI.BuildTestPlan() gatherer = PGMain.PG() class DAWindow(object): def __init__(self): pass def run(self): self.root = Toplevel() self.root.geometry('280x60') self.root.wm_title("DA") # background_image = jpg_image("GUI/pic/cyber_tpb.jpg") # background_label=Label(self.root, image=background_image, width=240, height=300) # background_label.place(x=140,y=0,relwidth=1, relheight=1) f1 = Frame(self.root, height=32, width=120) f1.pack_propagate(0) select_button = Button(f1, text="Display", command=lambda: self.display( group=listbox.get(listbox.curselection()[0]))) select_button.pack(fill=BOTH, expand=1) f1.grid(row=0, column=0)