Under Windows, this is the Windows On the Macintosh the value has no meaning outside Tk. On Unix platforms, this is the X window identifier. winfo id window Returns a hexadecimal string giving a low-level platform-specific identifier for window. #self. or use winfo reqheightto get the window's requested height instead of its actual height. Self.protocol("WM_DELETE_WINDOW", self.on_exit) Msg = "".format(self.winfo_name().title()) ("Test exist", 0, self.on_test_exist, ""),įor index, text in enumerate(self.voices):į0.pack(fill=tk.BOTH, expand=1, padx=5, pady=5)į2.pack(side=tk.RIGHT, fill=tk.Y, padx=5, pady=5, expand=0)į1.pack(side=tk.LEFT, fill=tk.Y, padx=5, pady=5, expand=0) ("Get winfo_children", 0, self.on_get_winfo_children, ""), ("Top Three", 5, self.on_open_three, ""),Ĭommand = btn).pack(fill=tk.X, padx=5, pady=5) Get the fastest and smoothest gaming performance with BlueStacks - the worlds most popular, safest and FREE Mobile Gaming Platform for Windows and Mac. If self.nametowidget(DICT_TOPLEVELS).winfo_exists():įile "/usr/lib/python3.7/tkinter/_init_.py", line 1353, in nametowidgetīasically in an application with many Toplevels, how do you see if a certain Toplevel is open? Selecting a Toplevel to test using the radiobox on the right happens that if the relative Toplevel is open the function work fine, otherwise generates the following error: Exception in Tkinter callbackįile "/usr/lib/python3.7/tkinter/_init_.py", line 1705, in _call_įile "/home/bc/Desktop/simple_app.py", line 113, in on_test_exist Pressing on the first appears a mask where we can, by pressing the relevant buttons, see the execution of both the winfo_exists() method and the winfo_children() method. Abrir la terminal y escribir: sudo apt-get install lm-sensors Escribir el siguiente comando para. Por encima de los 90º: llama a los bomberos. When you open the app, four buttons are shown. Si sobrepasa los 85º deberíamos preocuparnos. I enclose a script to better clarify what I would like to do. However, I cannot test the existence of a Toplevel by passing the name of this to winfo_exists() method. 3.0.2.8, Windows Server 2003/2008, Windows XP, Windows Vista, Windows 7, Windows 8, Windows. I’m trying to test the existence of a toplevel using the winfo_exists() method made available by Tkinter.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |