Tag:parts

  • Flying from scratch: statelesswidget

    Time:2021-2-23

    This time, we will show what is the widget of flutter, that is, the widget; and how to use stateless widget, that is, stateless widget in flutter. As for flutter, developers can use a simple set of code to build Android and IOS applications at the same time. characteristic Widgets are the basic building blocks […]

  • Tkinter (19) text part

    Time:2021-2-4

    The creation of text parts and its options The component is mainly used to process multi line strings, and it can also be used as a text editor. It can mix different fonts, colors and pictures (pictures are treated as single characters). It can also embed other components in the text component, which is also […]

  • Tkinter (20) top level

    Time:2021-2-3

    Creation and options of top level widget Independent top-level windows, with independent window manager, can be moved and resized independently. Applications can use any number of top-level windows. Any component can use winfo_ The toplevel () method returns its top-level widget top_level = tk.Toplevel(option, …) option explain bg or background Background color bd or borderwidth […]

  • Flying from scratch: stateful widget

    Time:2021-1-31

    Previous review Flying from scratch: statelesswidget In the previous article, we introduced the features of statelesswidget and its rendering principle in flutter. This time, let’s talk about its brother stateful widget, commonly known as stateful widget. characteristic If you’ve read my previous article, you’re probably familiar with statelesswidget. They are implemented by a blueprint and […]

  • General method of Tkinter (21) components

    Time:2021-1-28

    method explain after(delay_ms, callback=None, *args) At least delay_ Ms after calling callback, no callback, equivalent time.sleep (); returns an ID to cancel after_ The cancel () method uses after_cancel(id) Cancel the callback of after method call after_idle(func, *args) Similar to the after method, but called when there is no event idle bell() A beep bind(sequence=None, […]

  • Tkinter (22) standardized appearance and options database

    Time:2021-1-26

    Use the options database to set the default option values of the components. In addition, you can use the preset file. xdefaults fileEach part has a category name, which is basically the same as the category constructor, for example, the button isButtonIt can also be named by itself; another name is just like the instance […]

  • Tkinter (23) button unit ttk.Button /Themed component module TTK

    Time:2021-1-16

    Themed component module TTK TTK module can only be used after Tkinter 8.5. It provides different applications, has different appearance in different platforms, and simplifies and unifies the behavior of specific state components. For example, a state of a component can be set or cancelled separately, for example, the value of some options can be […]

  • Tkinter (24) check button unit ttk.Checkbutton

    Time:2021-1-15

    Creation of TTK check button part and its options w = ttk.Checkbutton(parent, option=value, …) option explain class_ Component classification name cannot be changed after creation command The function called by the component compound The position of the image relative to the string, tk.TOP/BOTTOM/LEFT/RIGHT , set as picture priority, no string cursor The mouse that appears […]

  • Tkinter (25) combo box part ttk.Combobox

    Time:2021-1-14

    Creation of TTK combo box and its options Combo box is composed of entry and drop-down menu, which can be used to select content w = ttk.Combobox(parent, option=value, …) option explain class_ Component classification name cannot be changed after creation cursor The mouse that appears when the mouse hovers over a button exportselection Can text […]

  • Tkinter (26) input unit ttk.Entry

    Time:2021-1-12

    Creation of TTK input part and its options w = ttk.Entry(parent, option=value, …) option explain class_ Component classification name cannot be changed after creation cursor The mouse that appears when the mouse hovers over a button exportselection Can text be copied to clipboard 0 / 1 font Text font cannot be set in style invalidcommand […]

  • 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 (28) label components ttk.Label

    Time:2021-1-10

    Creation of TTK tag part and its options w = ttk.Label(parent, option=value, …) option explain anchor The positioning point of components is internally defined as center / w / E background background color borderwidth Dimension of part frame class_ Component classification name cannot be changed after creation compound When a graph is shared with a […]