示例#1
0
    def manual_window(self):

        self.manual_window = tk.Toplevel(self.master)
        self.manual_window.title('How to connect Nao')
        main_window.withdraw()
        new_window = Window()
        new_window.center_window(self.manual_window, 500, 645)

        image = Image.open("the_manual.jpg")
        photo = ImageTk.PhotoImage(image)
        self.image_lbl = tk.Label(self.manual_window, image=photo)
        self.image_lbl.image = photo

        self.exit_bt = tk.Button(
            self.manual_window,
            text="Go Back to the Main Panel",
            width=15,
            height=3,
            wraplength=90,
            relief="raise",
            bd=5,
            bg="#3399FF",
            fg="black",
            command=lambda: self.iconify_main_panel(self.manual_window))

        self.image_lbl.grid(row=0, column=0)
        self.exit_bt.grid(row=1, column=0, pady=(10, 0), columnspan=2)

        self.manual_window.protocol(
            "WM_DELETE_WINDOW",
            lambda: self.iconify_main_panel(self.manual_window))
示例#2
0
 def settings_window(self):
 
      self.settings_window = tk.Toplevel(self.master)
      new_window = Window() 
      main_window.withdraw()
      new_window.center_window(self.settings_window,400,675)
      self.app = Settings(self.settings_window)
      self.settings_window.protocol("WM_DELETE_WINDOW", lambda: self.iconify_main_panel(self.settings_window) )
示例#3
0
 def demo_window(self):
     
      from demonstration import Demonstration
      self.demo_window = tk.Toplevel(self.master)
      main_window.withdraw()
      new_window = Window() 
      new_window.center_window(self.demo_window,450,580)
      self.app = Demonstration(self.demo_window)
      self.demo_window.protocol("WM_DELETE_WINDOW", lambda: self.iconify_main_panel(self.demo_window) )
示例#4
0
 def lab_info_window(self):
     
      from robotics_lab import Lab_Info
      self.lab_info_window = tk.Toplevel(self.master)
      main_window.withdraw()
      new_window = Window() 
      new_window.center_window(self.lab_info_window,520,410)
      self.app = Lab_Info(self.lab_info_window)
      self.lab_info_window.protocol("WM_DELETE_WINDOW", lambda: self.iconify_main_panel(self.lab_info_window) )
示例#5
0
 def speech_window(self):
     
      from speech import Speech
      self.speech_window = tk.Toplevel()
      main_window.withdraw()
      new_window = Window() 
      new_window.center_window(self.speech_window,910,790)
      self.app = Speech(self.speech_window)
      self.speech_window.protocol("WM_DELETE_WINDOW", lambda: self.iconify_main_panel(self.speech_window) )
示例#6
0
 def motion_window(self):
     
      from motion import Motion
      self.motion_window = tk.Toplevel(self.master)
      main_window.withdraw()
      new_window = Window()
      new_window.center_window(self.motion_window,805,680)
      self.app = Motion(self.motion_window)       
      
      self.motion_window.protocol("WM_DELETE_WINDOW", lambda: self.iconify_main_panel(self.motion_window) )
示例#7
0
    def settings_window(self):

        self.settings_window = tk.Toplevel(self.master)
        new_window = Window()
        main_window.withdraw()
        new_window.center_window(self.settings_window, 410, 645)
        self.app = Settings(self.settings_window)
        self.settings_window.protocol(
            "WM_DELETE_WINDOW",
            lambda: self.iconify_main_panel(self.settings_window))
示例#8
0
    def demo_window(self):

        from demonstration import Demonstration
        self.demo_window = tk.Toplevel(self.master)
        main_window.withdraw()
        new_window = Window()
        new_window.center_window(self.demo_window, 450, 580)
        self.app = Demonstration(self.demo_window)
        self.demo_window.protocol(
            "WM_DELETE_WINDOW",
            lambda: self.iconify_main_panel(self.demo_window))
示例#9
0
    def lab_info_window(self):

        from robotics_lab import Lab_Info
        self.lab_info_window = tk.Toplevel(self.master)
        main_window.withdraw()
        new_window = Window()
        new_window.center_window(self.lab_info_window, 525, 380)
        self.app = Lab_Info(self.lab_info_window)
        self.lab_info_window.protocol(
            "WM_DELETE_WINDOW",
            lambda: self.iconify_main_panel(self.lab_info_window))
示例#10
0
    def speech_window(self):

        from speech import Speech
        self.speech_window = tk.Toplevel()
        main_window.withdraw()
        new_window = Window()
        new_window.center_window(self.speech_window, 900, 690)
        self.app = Speech(self.speech_window)
        self.speech_window.protocol(
            "WM_DELETE_WINDOW",
            lambda: self.iconify_main_panel(self.speech_window))
示例#11
0
    def motion_window(self):

        from motion import Motion
        self.motion_window = tk.Toplevel(self.master)
        main_window.withdraw()
        new_window = Window()
        new_window.center_window(self.motion_window, 675, 590)
        self.app = Motion(self.motion_window)

        self.motion_window.protocol(
            "WM_DELETE_WINDOW",
            lambda: self.iconify_main_panel(self.motion_window))
示例#12
0
 def manual_window(self):
     
      self.manual_window = tk.Toplevel(self.master)
      self.manual_window.title('How to connect Nao')
      main_window.withdraw()
      new_window = Window() 
      new_window.center_window(self.manual_window,500,645)
      
      image = Image.open("the_manual.jpg")
      photo = ImageTk.PhotoImage(image)
      self.image_lbl = tk.Label(self.manual_window, image=photo) 
      self.image_lbl.image = photo
     
      self.exit_bt = tk.Button(self.manual_window, text = "Go Back to the Main Panel" ,width=15, height=3, wraplength=90,  relief ="raise" , bd=5 , bg = "#3399FF", fg = "black" , command = lambda: self.iconify_main_panel(self.manual_window)) 
      
      self.image_lbl.grid(row=0 , column =0)
      self.exit_bt.grid(row=1 , column =0 , pady = (10,0) , columnspan=2)
      
      
      self.manual_window.protocol("WM_DELETE_WINDOW", lambda: self.iconify_main_panel(self.manual_window) )
示例#13
0
                #threading.Timer(5.0, self.update_battery).start()  
                threading.Timer(15.0, self.update_battery).start() 

             except BaseException:
				 
                 self.ip.set("Disconnected")  
                 return    


# A new window with specified dimensions and a title has been created
# The window has been declared to remain on the same size and the user cannot alter its dimensions
main_window = tk.Tk()
main_window.title('Panos Nao Robot Demonstrator')
main_window.resizable(width="false", height="false")

# Objects of the three classes of the file are declared
main_right = Right_Frame(main_window)
main_top = Top_Bar_Frame(main_window)
main_bottom = Bottom_Frame(main_window)

# An object from the class Windowis created with the purpose to set the window on the center of the screen
new_window = Window() 
new_window.center_window(main_window,1100,605)
#new_bar= Top_Bar()
#new_bar.top_bar(main_window)

# When the window closes the main_close_window method is called at the same time
main_window.protocol("WM_DELETE_WINDOW", lambda: main_bottom.main_window_close() )

main_window.mainloop()
示例#14
0
                threading.Timer(15.0, self.update_battery).start()

            except BaseException:

                self.ip.set("Disconnected")
                return


# A new window with specified dimensions and a title has been created
# The window has been declared to remain on the same size and the user cannot alter its dimensions
main_window = tk.Tk()
main_window.title('Panos Nao Robot Demonstrator')
main_window.resizable(width="false", height="false")

# Objects of the three classes of the file are declared
main_right = Right_Frame(main_window)
main_top = Top_Bar_Frame(main_window)
main_bottom = Bottom_Frame(main_window)

# An object from the class Windowis created with the purpose to set the window on the center of the screen
new_window = Window()
new_window.center_window(main_window, 1050, 615)
#new_bar= Top_Bar()
#new_bar.top_bar(main_window)

# When the window closes the main_close_window method is called at the same time
main_window.protocol("WM_DELETE_WINDOW",
                     lambda: main_bottom.main_window_close())

main_window.mainloop()
示例#15
0
                #threading.Timer(5.0, self.update_battery).start()  
                threading.Timer(15.0, self.update_battery).start() 

             except BaseException:
				 
                 self.ip.set("Disconnected")  
                 return    


# A new window with specified dimensions and a title has been created
# The window has been declared to remain on the same size and the user cannot alter its dimensions
main_window = tk.Tk()
main_window.title('Panos Nao Robot Demonstrator')
main_window.resizable(width="false", height="false")

# Objects of the three classes of the file are declared
main_right = Right_Frame(main_window)
main_top = Top_Bar_Frame(main_window)
main_bottom = Bottom_Frame(main_window)

# An object from the class Windowis created with the purpose to set the window on the center of the screen
new_window = Window() 
new_window.center_window(main_window,1050,615)
#new_bar= Top_Bar()
#new_bar.top_bar(main_window)

# When the window closes the main_close_window method is called at the same time
main_window.protocol("WM_DELETE_WINDOW", lambda: main_bottom.main_window_close() )

main_window.mainloop()
示例#16
0
                threading.Timer(15.0, self.update_battery).start()

            except BaseException:

                self.ip.set("Disconnected")
                return


# A new window with specified dimensions and a title has been created
# The window has been declared to remain on the same size and the user cannot alter its dimensions
main_window = tk.Tk()
main_window.title('Panos Nao Robot Demonstrator')
main_window.resizable(width="false", height="false")

# Objects of the three classes of the file are declared
main_right = Right_Frame(main_window)
main_top = Top_Bar_Frame(main_window)
main_bottom = Bottom_Frame(main_window)

# An object from the class Windowis created with the purpose to set the window on the center of the screen
new_window = Window()
new_window.center_window(main_window, 1100, 605)
#new_bar= Top_Bar()
#new_bar.top_bar(main_window)

# When the window closes the main_close_window method is called at the same time
main_window.protocol("WM_DELETE_WINDOW",
                     lambda: main_bottom.main_window_close())

main_window.mainloop()