Category "tkinter"

How do I delete the selection of a combobox from a sqlite database?

I want to delete a row from a sqlite3 database using the selection of a combobox to get the row that I want to delete. My current code deletes an item from the

Cannot change tkinter font on pixelbook

I am using python3 with tkinter on my pixelbook chromebook using native Linux in developer branch. It's an Anaconda distribution (python 3.6.5), and all packag

MVC with tkinter?

MVC with tkinter? I'm trying to do a simple flashcards game with tkinter with MVC pattern but I do not know how to connect the view with their controller...the

Tkinter - way to open a directory window in Windows Explorer

I've been looking into Tkinter and recently have made a small program just to monitor folders and check how many files are inside. I'de like to create buttons

Making tkinter notebook tabs shrink to fit or adding scrolling to tabs

How can I add scrolling to the tabs of the tkinter notebook? By default notebooks will just expand when more tabs are added but that can lead to errors for apps

How to suppress TASKILL output in python os module

I am trying to create a close button for my tkinter application without using the sys module. I implemented this: os.system("TASKKILL /F /IM main.exe") and con

Why are multiple instances of Tk discouraged?

Consider below example: import tkinter as tk root = tk.Tk() root.title("root") other_window = tk.Tk() other_window.title("other_window") root.mainloop() a

Tkinter/ttk themed Message Box?

I started making a GUI with Tkinter and I added the module tkMessageBox as well. But recently I discovered that importing the module ttk gives more "up-to-date"

How do I execute first my custom error message before the first Traceback?

I made a program with restrictions with Tkinter and I created a custom error message wherein if the conditions for the restriction is met, then an error message

tkFileDialog and Zipfile error: "AttributeError: '_io.TextIOWrapper' object has no attribute 'namelist'"

I'm trying to use tkfiledialog to select a file, and then use Zipfile to extract the contents. from zipfile import ZipFile from tkinter import filedialog Zi

Why does Tkinter image not show up if created in a function?

This code works: import tkinter root = tkinter.Tk() canvas = tkinter.Canvas(root) canvas.grid(row = 0, column = 0) photo = tkinter.PhotoImage(file = './test.g

matlab's imshow3d mouse scrolling image visualization in python

Currently, I am trying to build a User Interface with python to visualize MRI images (in numpy) in 'tkinter' Graphic User Interface. The feature of mouse scrol

Tkinter: How to make a button center itself?

I'm making a program in Python and I want to go with a layout that is a bunch of buttons in the center. How do I make a button center itself using pack()?

How to change on_press "animation" of Tkinter button in python

i have a taskbar-like Frame, which contains custom Buttons with images. But everytime i click on this button, Tkinter displaced the button 1px to the right/butt

Tkinter and matplotlib: Bind to FigureCanvasTkAgg to extract curser position in figure?

I want to plot a 2d array using matplotlib, and then extract the curser position when I click on the plotted image. Here's a minimal working example of how I wo

DEPRECATION WARNING:

I am trying to following the answer to this question in an attempt to copy to clipboard however all solutions provided in the answer seem to have failed me. On

Python GUI using tkinter and db connection [duplicate]

I am not able to get any output from the following program.What i am trying to do here is store employee name and salary in a database and lat

Why is the Tkinter render quality much worse on windows?

I have developed a python app with Tkinter on a Mac. It involves forms, and canvas drawings. On the Mac, it looks great. However on my Dell laptop (4K display,

Embed icon in python script

Does anybody know a way to embed an icon in a Python script such that when I create my standalone executable (using pyinstaller) I don't need to include the .ic

tkinter enable/disable menu

I need some help in this. I want the user to login ... once he is logged in, only the menu corresponding to the module he is allowed to access will be enabled.