Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class GameWin:
- def __init__(self, master):
- self.master = master
- self.master.title("Hacker")
- win_width = self.master.winfo_width()
- win_height = self.master.winfo_height()
- self.main_frame = Frame(self.master, bd = 10, bg = uni_bg)
- self.main_frame.grid(sticky = "nsew")
- self.left_frame = Frame(self.main_frame, bd = 10, bg = uni_bg, height = int(win_height), width = int(win_width/2))
- self.left_frame.grid(column = 0, row = 0, rowspan = 3)
- self.left_frame.grid_propagate(False)
- self.note_frame = Frame(self.main_frame, bd = 10, bg = uni_bg, height = int(win_height/2), width = int(win_width/4))
- self.note_frame.grid(column = 1, row = 0, rowspan = 2, sticky = "n")
- self.note_frame.grid_propagate(False)
- self.sys_frame = Frame(self.main_frame, bd = 10, bg = uni_bg, height = int(win_height/4), width = int(win_width/4))
- self.sys_frame.grid(column = 2, row = 0, sticky = "n")
- self.sys_frame.grid_propagate(False)
- self.trace_frame = Frame(self.main_frame, bd = 10, bg = uni_bg, height = int(win_height/4), width = int(win_width/4))
- self.trace_frame.grid(column = 2, row = 1, sticky = "n")
- self.trace_frame.grid_propagate(False)
- self.bottom_right_frame = Frame(self.main_frame, bd = 10, bg = uni_bg, height = int(win_height/2), width = int(win_width/2))
- self.bottom_right_frame.grid(column = 1, row = 2, columnspan = 2)
- self.bottom_right_frame.grid_propagate(False)
- self.web = Text(self.left_frame, font = (uni_font, 12), wrap = WORD, bg = uni_bt_bg, fg = uni_fg)
- self.web.grid(column = 0, row = 0, padx = 5, pady = 5)
- self.output = Text(self.left_frame, font = (uni_font, 12), wrap = WORD, bg = "black", fg = uni_fg)
- self.output.grid(column = 0, row = 1, padx = 5, pady = 5, sticky = "ew")
- self.input = Entry(self.left_frame, font = (uni_font, 12))
- self.input.grid(column = 0, row = 2, sticky = "ew")
- self.input.bind('<Return>', self.submit)
- self.notepad = Text(self.note_frame, font = (uni_font, 12), wrap = WORD, bg = uni_fg, fg = "black")
- self.notepad.pack(fill = BOTH, expand = YES)
- self.sys_info = Text(self.sys_frame, font = (uni_font, 12), wrap = WORD, bg = uni_bg, fg = uni_fg)
- self.sys_info.tag_configure('center', justify='center')
- self.sys_info.grid(sticky = "nsew")
- self.sys_info.insert(END, "NAME", "center")
- self.sys_info.configure(state = "disabled")
- self.trace = Text(self.trace_frame, font = (uni_font, 12), wrap = WORD, bg = uni_bg, fg = uni_fg)
- self.trace.grid(sticky = "nsew")
- self.email = Text(self.bottom_right_frame, font = (uni_font, 12), wrap = WORD, bg = uni_bt_bg, fg = uni_fg)
- self.email.grid(row = 0, pady = 5, columnspan = 2, sticky = "nsew")
- self.email.configure(state = "disabled")
- self.respond = Entry(self.bottom_right_frame, font = (uni_font, 12))
- self.respond.grid(row = 1, columnspan = 2, sticky = "ew")
- self.respond.bind('<Return>', self.do_respond)
- def submit(self, event):
- self.output.configure(state = "normal")
- self.output.configure(state = "disabled")
- def do_respond(self, event):
- pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement