About 15,800,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. What is the difference between the widgets of tkinter and tkinter.ttk ...

    The widgets in tkinter are highly and easily configurable. You have almost complete control over how they look - border widths, fonts, images, colors, etc. ttk widgets use styles to define how they look, so …

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

    Feb 21, 2015 · I have seen call function in Python scripts, called as tk.call(), but I don't understand the meaning of the same. There is no documentation related to it too. Can any one please explain about the

  5. 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 …

  6. Subclass of tkinter's Toplevel class doesn't seem to inherit "tk" attribute

    Apr 13, 2025 · I'm writing a Python application using tkinter GUI. I created the TimestampWindow class which should be one of my Windows and made it extend the Toplevel class of tkinter's library and …

  7. python - ImportError: No module named 'Tkinter' - Stack Overflow

    Sep 18, 2014 · For some reason, I can't use the Tkinter (or tkinter, on Python 3) module. After running the following command in the python shell: import Tkinter or this, in Python 3: import tkinter I got this ...

  8. Difference between "fill" and "expand" options for tkinter pack method

    Jan 22, 2015 · What's the difference between the " fill " and " expand " options for Tkinter's pack method? I have actually looked up about it everywhere, and I am unable to find the satisfactory …

  9. difference between tk.Tk () and tk.Frame - Stack Overflow

    Dec 27, 2019 · I have noticed that both of the instructions tk.Tk() and tk.Frame make a new window, so what is the difference between them? and what is the advantage of using one over the other ?

  10. AttributeError: object has no attribute 'tk' - Stack Overflow

    Jul 2, 2016 · AttributeError: 'MWindow' object has no attribute 'tk' I tried going to the library files to understand what's wrong,but being a beginner i can't make much of it.