Self.abort = tk.PhotoImage(file='images/abort knop.png')ĪbortButton = tk.Button(self, image=self.abort, command=lambda: master. Atm Keypad manufacturers & wholesalers Product List Supplier List View: List View Gallery View PCI4. Atm Keypad Layout stock illustrations View atm keypad layout videos Browse 17 atm keypad layout stock illustrations and vector graphics available royalty-free, or start a new search to explore more great stock images and vector art. Self.fast = tk.PhotoImage(file='images/fast70knop.png')įastButton = tk.Button(self, image=self.fast, command=None, borderwidth=0) Self.bal = tk.PhotoImage(file='images/balanceknop.png')īalButton = tk.Button(self, image=self.bal, command=lambda: master.switch_frame(PageFour), borderwidth=0) WithdrawButton = tk.Button(self, image=self.wd, borderwidth=0,Ĭommand=lambda: master.switch_frame(PageThree)) Self.wd = tk.PhotoImage(file='images/withdrawknop.png') Self.bg_image = tk.PhotoImage(file='images/Keuzemenu-scherm.png')īutton = tk.Button(self, text="Go to the start page", command=lambda: master.switch_frame(StartPage)) Self.bg_image = tk.PhotoImage(file='images/pincode-check-scherm.png')Ĭommand=lambda: master.switch_frame(PageTwo)).pack() Self.bg_label = tk.Label(self, image=self.bg_image)īutton1 = tk.Button(self, text="Go to Page One",Ĭommand=lambda: master.switch_frame(PageOne)) Self.bg_image = tk.PhotoImage(file='images/beginscherm.png') """Destroys current frame and replaces it with a new one.""" I think the problem lies with that the PageTwo loads after the Thread is finished. I used a Thread x so that it could run the while True loop, but when I run my GUI and want to go to load PageTwo the frame is stuck on PageOne until I press something on the keypad. Keypad customKeypad = Keypad(makeKeymap(hexaKeys), rowPins, colPins, ROWS, COLS) I wrote some code to read the serial output of the Arduino. I want to switch the frame on the event of a button pressed on my 4x4 matrix keypad connected to an Arduino. I'm trying to make a GUI for aan ATM machine project.
0 Comments
Leave a Reply. |