Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2019
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.06 KB | None | 0 0
  1. class GameWin:
  2.     def __init__(self, master):
  3.         self.master = master
  4.         self.master.title("Hacker")
  5.         win_width = self.master.winfo_width()
  6.         win_height = self.master.winfo_height()
  7.        
  8.         self.main_frame = Frame(self.master, bd = 10, bg = uni_bg)
  9.         self.main_frame.grid(sticky = "nsew")
  10.        
  11.         self.left_frame = Frame(self.main_frame, bd = 10, bg = uni_bg, height = int(win_height), width = int(win_width/2))
  12.         self.left_frame.grid(column = 0, row = 0, rowspan = 3)
  13.         self.left_frame.grid_propagate(False)
  14.        
  15.         self.note_frame = Frame(self.main_frame, bd = 10, bg = uni_bg, height = int(win_height/2), width = int(win_width/4))
  16.         self.note_frame.grid(column = 1, row = 0, rowspan = 2, sticky = "n")
  17.         self.note_frame.grid_propagate(False)
  18.        
  19.         self.sys_frame = Frame(self.main_frame, bd = 10, bg = uni_bg, height = int(win_height/4), width = int(win_width/4))
  20.         self.sys_frame.grid(column = 2, row = 0, sticky = "n")
  21.         self.sys_frame.grid_propagate(False)
  22.        
  23.         self.trace_frame = Frame(self.main_frame, bd = 10, bg = uni_bg, height = int(win_height/4), width = int(win_width/4))
  24.         self.trace_frame.grid(column = 2, row = 1, sticky = "n")
  25.         self.trace_frame.grid_propagate(False)
  26.        
  27.         self.bottom_right_frame = Frame(self.main_frame, bd = 10, bg = uni_bg, height = int(win_height/2), width = int(win_width/2))
  28.         self.bottom_right_frame.grid(column = 1, row = 2, columnspan = 2)
  29.         self.bottom_right_frame.grid_propagate(False)
  30.        
  31.         self.web = Text(self.left_frame, font = (uni_font, 12), wrap = WORD, bg = uni_bt_bg, fg = uni_fg)
  32.         self.web.grid(column = 0, row = 0, padx = 5, pady = 5)
  33.        
  34.         self.output = Text(self.left_frame, font = (uni_font, 12), wrap = WORD, bg = "black", fg = uni_fg)
  35.         self.output.grid(column = 0, row = 1, padx = 5, pady = 5, sticky = "ew")
  36.  
  37.        
  38.         self.input = Entry(self.left_frame, font = (uni_font, 12))
  39.         self.input.grid(column = 0, row = 2, sticky = "ew")
  40.         self.input.bind('<Return>', self.submit)
  41.        
  42.         self.notepad = Text(self.note_frame, font = (uni_font, 12), wrap = WORD, bg = uni_fg, fg = "black")
  43.         self.notepad.pack(fill = BOTH, expand = YES)
  44.        
  45.         self.sys_info = Text(self.sys_frame, font = (uni_font, 12), wrap = WORD, bg = uni_bg, fg = uni_fg)
  46.         self.sys_info.tag_configure('center', justify='center')
  47.         self.sys_info.grid(sticky = "nsew")
  48.         self.sys_info.insert(END, "NAME", "center")
  49.         self.sys_info.configure(state = "disabled")
  50.        
  51.         self.trace = Text(self.trace_frame, font = (uni_font, 12), wrap = WORD, bg = uni_bg, fg = uni_fg)
  52.         self.trace.grid(sticky = "nsew")
  53.        
  54.         self.email = Text(self.bottom_right_frame, font = (uni_font, 12), wrap = WORD, bg = uni_bt_bg, fg = uni_fg)
  55.         self.email.grid(row = 0, pady = 5, columnspan = 2, sticky = "nsew")
  56.         self.email.configure(state = "disabled")
  57.        
  58.         self.respond = Entry(self.bottom_right_frame, font = (uni_font, 12))
  59.         self.respond.grid(row = 1, columnspan = 2, sticky = "ew")
  60.         self.respond.bind('<Return>', self.do_respond)
  61.        
  62.     def submit(self, event):
  63.         self.output.configure(state = "normal")
  64.         self.output.configure(state = "disabled")
  65.    
  66.     def do_respond(self, event):
  67.         pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement