
Ttk Labelframe widget is a container used to group other widgets The Ttk Scale can be accessed through instance.scale, and Ttk LabelĬonfiguration Options: borderwidth, padding, relief, width, height, takefocus, cursor, style, class tkinter.ttk. LabeledScale (master=None, variable=None, from_=0, to=10, **kw)Ī Ttk Scale widget with a Ttk Label widget indicating its Ttk Label widget displays a textual label and/or image.Ĭonfiguration Options: background, foreground, font, borderwidth, relief, anchor, justify, wraplength, takefocus, text, textvariable, underline, width, image, compound, padding, state, cursor, style, class tkinter.ttk. Ttk Frame widget is a container, used to group other widgetsĬonfiguration Options: borderwidth, padding, relief, width, height, takefocus, cursor, style, class tkinter.ttk. Ttk Entry widget displays a one-line text string and allows thatĬonfiguration Options: exportselection, font, invalidcommand, justify, show, state, textvariable, validate, validatecommand, width, xscrollcommand, foreground, background, takefocus, cursor, style, class tkinter.ttk. aka select_rangeĬonfiguration Options: height, postcommand, values, exportselection, font, invalidcommand, justify, show, state, textvariable, validate, validatecommand, width, xscrollcommand, foreground, background, takefocus, cursor, style, class tkinter.ttk. Ttk Combobox widget combines a text field with a pop-down list of Ttk Checkbutton widget which is either in on- or off-state.Ĭonfiguration Options: variable, onvalue, offvalue, command, takefocus, text, textvariable, underline, width, image, compound, padding, state, cursor, style, class tkinter.ttk. Ttk Button widget, displays a textual label and/or image, andĬonfiguration Options: command, default, takefocus, text, textvariable, underline, width, image, compound, padding, state, cursor, style, class tkinter.ttk.

Instate (statespec, callback=None, *args, **kw) Winfo_visualsavailable (includeids=False) Winfo_containing (rootX, rootY, displayof=0) Grid_columnconfigure (index, cnf=, **kw). Grid_bbox (column=None, row=None, col2=None, row2=None). aka configīind (sequence=None, func=None, add=None)īind_all (sequence=None, func=None, add=None)īind_class (className, sequence=None, func=None, add=None) Option_readfile (fileName, priority=None)

Option_add (pattern, value, priority=None) By convention, they are usually invoked on the application root window. Note: The following methods are available on all widgets, but work globally rather than acting on an individual widget.

Toplevel widget of Tk which represents mostly the main window Tk (screenName=None, baseName=None, className='Tk', useTk=True, sync=False, use=None) Now, while residing in the window, press Enter that will force the window to close.Tkinter Class API Reference Contents Tkinter Class API Reference Tk Application Root tkinter.
#Icursor tk code#
Running the above code will hide or disable the Mouse Pointer for the window. Label=ttk.Label(win, text="Press Enter to Close the Window", font=('Century 17 bold')) #Create an instance of Tkinter frame or window

It can be invoked for the master or root window. To hide or disable the mouse pointer for a particular Tkinter application, then we can configure the mouse property using config(mouse= "none") method. However, if we want to control the Tkinter window components such as mouse cursor, control icons, toolbars, then Tkinter provides several built-in functions which can be used to configure the Tkinter window objects. There are several ways to disable and enable a particular widget in a Tkinter application.
