Category "tkinter"

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.

Switch between two frames in tkinter?

I have built my first few scripts with a nice little GUI on them, as the tutorials have shown me, but none of them address what to do for a more complex program

How to pass arguments to a Button command in Tkinter?

Suppose I have the following Button made with Tkinter in Python: import Tkinter as Tk win = Tk.Toplevel() frame = Tk.Frame(master=win).grid(row=1, column=1) bu

How to change menu background color of Tkinter's OptionMenu widget?

If I take a simple example of OptionMenu from http://effbot.org/tkinterbook/optionmenu.htm, and add a line that sets background color (see below), only the butt

tkPDFViewer working only once then throw : image "pyimage1" doesn't exist

# Importing tkinter to make gui in python from tkinter import* # Importing tkPDFViewer to place pdf file in gui. # In tkPDFViewer library there is # an tkPDF

What does overrideredirect() do?

I have come to understand overrideredirect helps removing the default window decorations like the toolbar.What are its other uses? I am not very sure and couldn

Intercept Tkinter "Exit" command?

I'm writing a client-server program in Python with Tkinter. I need the server to keep track of the connected clients. For this, I would like to have the clien

Get Tkinter Window Size

How do I get the width and height of a Tkinter window?

How to change font size in ttk.Button?

This is my problem, I was building an interface for a program, but for needs of the bosses, the font must be larger. I have changed the font size of every widge

I am making a calculator and I get TypeError: can only concatenate str (not "int") to str [closed]

I was making a graphic calculator and I just received an error. Here is the code: from tkinter import * from PIL import * window = Tk() window

How to create a modal dialog in tkinter?

I have a MFC application which runs some embedded Python scripts. I am trying to make one of the dialogs this embedded script creates modal, but I am not having