About 18,300,000 results
Open links in new tab
  1. python - What does calling Tk () actually do? - Stack Overflow

    Jul 14, 2014 · root = tk.Tk() app = Application(root) The program would run as well as it did before. With all this in mind, what I'm interested in knowing is: What does calling root = tk.Tk() actually do (as in, …

  2. Tkinter: "Python may not be configured for Tk" - Stack Overflow

    So appearantly many seems to have had this issue (me including) and I found the fault to be that Tkinter wasn't installed on my system when python was compiled. This post describes how to solve the …

  3. tk toolkit - Installed Python 3.12.8. Getting "version conflict for ...

    Aug 6, 2015 · I once had both Python 3.12 and 3.13 installed, but have since removed 3.13. I run the following simple program: from tkinter import * window = Tk () window.title ("Welcome to LikeGeeks …

  4. python - Tkinter module not found on Ubuntu - Stack Overflow

    Perhaps quite late, but I checked the output of apt-cache policy python3*-tk , it gave me python3-tk as the viable one, the entries for 3.10-tk and 3.11-tk were blank.

  5. How to specify where a Tkinter window opens? - Stack Overflow

    Feb 16, 2013 · How can I tell a Tkinter window where to open, based on screen dimensions? I would like it to open in the middle.

  6. What does the "tk.call" function do in Python/Tkinter?

    Feb 21, 2015 · package require tk frame .f button .f.b -text "Press me!" (note: Tkinter actually generates more complex names than .f and .f.b, but the concept is the same) The call method is the interface to …

  7. Difference between import tkinter as tk and from tkinter import

    33 from Tkinter import * imports every exposed object in Tkinter into your current namespace. import Tkinter imports the "namespace" Tkinter in your namespace and import Tkinter as tk does the same, …

  8. linux - Install tkinter for Python - Stack Overflow

    I am using python 3.8 and I still cannot import Tkinter: Tried sudo apt-get install python-tk and sudo apt-get install python3.8-tk but not able to see it in pycharm (using a virtual environment) Reading …

  9. How to pass arguments to a Button command in Tkinter?

    Aug 3, 2011 · import Tkinter as Tk win = Tk.Toplevel() frame = Tk.Frame(master=win).grid(row=1, column=1) button = Tk.Button(master=frame, text='press', command=action) The method action is …

  10. python - Module 'tkinter' has no attribute 'Tk' - Stack Overflow

    Aug 7, 2019 · Module 'tkinter' has no attribute 'Tk' Asked 6 years, 4 months ago Modified 2 years, 10 months ago Viewed 57k times