![]() ![]() Print('tkinter location: ()'.format(w, h)) Win32gui.EnumWindows(self.callback, None) ![]() This is my solution, tested in Python 3.4: import tkinter as tkī1 = tk.Button(text='test', command=self.pressed) I'm sure there's a Mac and Linux equivalent if that is a requirement. Unfortunatly this is only for Windows platforms and requires an installation on pywin32. From this information you should be able to implement the rest of the functionality. I've tried to implement a solution for getting the window size including the border using win32gui.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |