EasyDialog MethodĬreates a button (of type Button) with the given attributes, adds it to the dialog’s window, and returns the button. The apply method is run when the user selects the dialog’s OK button. Each method to add a widget includes the master argument that is received by the body method. The body method adds widgets to the dialog’s window. The _init_ method sets any window attributes. This subclass should include the _init_, body, and apply methods. A specialized dialog class is defined as a subclass of EasyDialog. It includes all of the methods and attributes of its parent class,, as well as methods for adding widgets to the dialog’s window. Returns True if the button is checked or False otherwise. It includes all of the methods and attributes of its parent class, tkinter.Checkbutton, as well as a method to determine if the button is checked. This class represents a labeled check box. Scales the item by the xScale and yScale factors (1.0 is no scale) relative to the xOrigin and yOrigin position. Moves the item the given xDistance and yDistance. Returns a list of the item’s current coordinates (corner points of ovals and rectangles, end points of line segments, center point of text and images). Returns the ID number of the oval.ĭraws a rectangle with the given corner points, outline, and fill colors. Returns the ID number of the line segment.ĭraws an oval with the given imaginary corner points, outline, and fill colors. The image is centered at the coordinates by default.ĭraws a line segment with the given end points, color, and width. Eas圜anvas Methodĭraws the given PhotoImage at the given coordinates and returns the ID number of the image. You can subclass Eas圜anvas to define specialized canvases, or use it as the default type of canvas in graphics applications. It includes all of the methods of its parent class, tkinter.Canvas, as well as methods to draw geometric shapes and text and methods to handle mouse events. This class represents a rectangular area in which geometric shapes, text, or images can be drawn. For complete documentation on the tkinter classes, consult the Python Web site. Note that the tkinter parent class of each breezypythongui class appears in parentheses. After browsing the information for that class, you can return to this point to make further selections. To use this quick reference, select a class from the following list.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |