Self.lab2 = Label(frame,text = 'Baudrate Set') Self.boxChoice = ttk.Combobox(frame,textvariable = self.boxValue,state = 'readonly') # Serial Password Selection Dropdown Menu Self.lab1 = Label(frame,text = 'Serial Number') The following is the source code, some error alert functions have not been done, at present, only the communication interface between the lower computer and PC is simply implemented, the lower computer is still using STM32F103 Fortunately, the version 2.7 that I downloaded has its own ttk module with combox, so the problem is solved smoothly. The insufficiency is that Tkinter does not bring combox with it. Tkinter is really useful in python, and the amount of code is really small. Finally, I have come up with an GUI interface for PC machine with basic serial communication functions. I have been busy for more than 3 hours and have been working together for more than 3 hours.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |