If the mouse pointer is on the same screen as window, returns a list with two elements, which are the pointer's x and y coordinates measured in pixels in the screen's root window. If the mouse pointer is on the same screen as window, returns the pointer's x coordinate, measured in pixels in the screen's root window. The result is rounded to the nearest integer value for a fractional result, use winfo_fpixels(). Number may be specified in any of the forms acceptable to Screen Units, such as "2.0c" or "1i". Returns the number of pixels in window corresponding to the distance given by number. ![]() Returns the path name of window's parent, or an empty string if window is the main window of the application. The name is usually the name of the Tkinter method for the geometry manager, such as pack() or place(). Returns the name of the geometry manager currently responsible for window, or an empty string if window is not managed by any geometry manager. Returns 1 if window is currently mapped, 0 otherwise. On the Macintosh the value has no meaning outside Tkinter. On Unix platforms, this is the X window identifier. winfo_id() br> Returns a hexadecimal string giving a low-level platform-specific identifier for window. Returns the geometry for window, in the form width x height + x + y. The return value may be fractional for an integer value, use winfo_pixels()''. number' may be specified in any of the forms acceptable to Screen Units, such as "2.0c" or "1i". Returns a floating-point value giving the number of pixels in window corresponding to the distance given by number. ![]() Returns 1 if there exists a window named window, an error is returned if no such window exists. ![]() Returns a decimal string giving the depth of window (number of bits per pixel). Returns a decimal string giving the number of cells in the color map for window. It can take any of a number of different forms. The winfo() method is used to retrieve information about windows managed by Tkinter.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |