Relative Content

Tag Archive for pythontkinter

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, […]

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

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’.

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.