SHARE
TWEET

Untitled

a guest Jun 25th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Main:
  2. def __init__(self, rt):
  3.     self.rt = rt
  4.     self.navbar = navbar.NavBar(rt)
  5.     self.rt.mainloop()
  6.  
  7. class NavBar(tkinter.Frame):
  8. def __init__(self, master):
  9.     tkinter.Frame.__init__(self, master)
  10.     self.master = master
  11.     self.bg='red'
  12.     self.text = tkinter.Text(self, height=1, width=30)
  13.     self.text.insert(tkinter.END, "File")
  14.     self.text.pack()
  15.     self.grid(row=0, column=0)
  16.  
  17. if __name__ == "__main__":
  18.     root = tkinter.Tk()
  19.     root.title('Automation')
  20.     main = Main(root)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top