Tag:Internal determination

  • Tkinter (10) menu unit

    Time:2021-5-9

    The creation of menu parts and its options The options in the menu can be text, picture, cascade, check button, or group radio button import tkinter as tk parent = tk.Tk() menu_widget = tk.Menu(parent, option, …) option explain activebackground Background color when active activeborderwidth The width of the active border is set to 1 pixel […]

  • Tkinter (17) scroll bar

    Time:2021-4-21

    Creation of scroll bar and its options The scroll bar consists of slider, arrow1, arrow2 and trough. The size and position of the slider represent the proportion and position of the visible part in the whole content (0.0 ~ 1.0) import tkinter as tk root = tk.Tk() parent_widget = … scroll_bar = tk.Scrollbar(parent_widget, option, …) […]

  • Tkinter (27) frame parts ttk.Frame

    Time:2021-1-11

    The creation of TTK framework parts and its options w = ttk.Frame(parent, option=value, …) option explain borderwidth The dimension of the outer frame of the part is internally set as 0 class_ Component classification name cannot be changed after creation cursor The mouse that appears when the mouse hovers over a button height Height of […]

  • Tkinter (29) tagged frame parts ttk.LabelFrame

    Time:2021-1-9

    Creation of TTK tagged frame parts and its options w = ttk.LabelFrame(parent, option=value, …) option explain borderwidth Dimension of part frame class_ Component classification name cannot be changed after creation cursor When the mouse hovers over the button, the empty string inherits the options of the parent part height Vertical height, generally invalid, unless grid […]

  • Tkinter (34) radio button unit ttk.Radiobutton

    Time:2021-1-2

    Creation of TTK radio button part and its options w = ttk.Radiobutton(parent, option=value, …) option explain class_ Component classification name cannot be changed after creation command A program called when the state of a radio button component changes compound The position of the graph relative to the text when the graph is shared with the […]