Could not call function from another class; Error: FrameLft.on_clickMB() missing 1 required positional argument: ‘self’
import tkinter as tk from tkinter import * frameLH = 120 def main_window(): # ========================== Main Window ============================== window = tk.Tk() window.geometry(“950×650″) window.minsize(750, 625) window.configure(bg=’#65A8E1′) FrameTop(window) FrameBot(window) FrameLft(window) FrameRgt(window) window.mainloop() class FrameTop: # ============================ Top Frame ================================= def __init__(self, root): self.root = root self.frame_top = tk.Frame(root, height=100, bg=”#70AD47”, relief=tk.RAISED, borderwidth=5) self.frame_top.pack(fill=tk.X, side=tk.TOP) self.btnM = (tk.Button(self.frame_top, […]
how to define fixed header in Tk.grid ( grid(10×5)
I am creating a tkinter grid with 10 columns and 5 rows, including an input textbox. I need to know how to create a fixed header and assign a title to the header. Any suggestions would be appreciated
Python tkinter quiz app, correct answers shown as wrong
I’m kind of a beginner in python and tkinter. I made a basic quiz app for a project in college, which displays random 10 questions out of a dict of 30 questions.
I created terminal to run input() but a problem occurs in python tkinter
I am creating a code editor and for this, I have created terminal to run python code, I create terminal to run input() code as well it’s working correctly everything is ok
but the problem is when run any file with input() and in that input contain some string inside
like input(“enter you number:-“)
So my terminal do not add first this string (“enter you number:-“) but when i give input then it add this string
I started a game in pyhon and got a _tkinter.TclError: invalid command name “.!canvas”
I started learning python a week ago and i had an project to do but when i finished it just half of this code works and i don’ know how to fix it:
Tkinter Search Box with Editable Output?
I am using the following TKinter Code to return a matching value from an existing dictionary.
However, in my usecase the returned value is not always going to be accurate, just a good guess based on past data. So I will need to be able to edit the second field after the ‘guess’.
Tkinter – return function that is activated by protocol gone wrong
to make a universal window management function that will be dynamic enough I’ve used some tricks.
but one that didn’t work for me, is the window’s variable assignment by making the bind assigned to the variable.
How to get treeview selected cell value tkinter
the treeview code is running smoothly and providing me with the full row data when I select any cell. However, I am in need of only the value of the selected cell. Kindly review my code and provide guidance on how to retrieve only the selected cell value. Thank you.
“command” functions in Python Tkinter in widgets are triggered when the widget is created, not when it is activated (by a button or checkbutton)
Could you please tell me why “command” in tk.Button and in cheskbutton is triggered not when a button or checkbox is clicked, but always when a widget is created, i.e. the function is called automatically. The “one” and “print” functions are activated at once
Access function and variable of parent(not exactly) class in tkinter of python
Please see the code below I got from OysterShucker