This is a "Class Method" meaning you call it by writing: width, height = Window.get_screen_size() Returns the size of the "screen" as determined by tkinter. This can vary depending on your operating system and the number of monitors installed on your system. For Windows, the prima
(self)
| 10184 | |
| 10185 | @classmethod |
| 10186 | def get_screen_size(self): |
| 10187 | """ |
| 10188 | This is a "Class Method" meaning you call it by writing: width, height = Window.get_screen_size() |
| 10189 | Returns the size of the "screen" as determined by tkinter. This can vary depending on your operating system and the number of monitors installed on your system. For Windows, the primary monitor's size is returns. On some multi-monitored Linux systems, the monitors are combined and the total size is reported as if one screen. |
| 10190 | |
| 10191 | :return: Size of the screen in pixels as determined by tkinter |
| 10192 | :rtype: (int, int) |
| 10193 | """ |
| 10194 | root = _get_hidden_master_root() |
| 10195 | screen_width = root.winfo_screenwidth() |
| 10196 | screen_height = root.winfo_screenheight() |
| 10197 | return screen_width, screen_height |
| 10198 | |
| 10199 | @property |
| 10200 | def metadata(self): |
no test coverage detected