Skip to content Skip to sidebar Skip to footer
Showing posts with the label Tkinter

How To Bounce Ball In Paddle Game On Another Shape Using Collisions?

Trying to get the ball to bounce on the platform, but the collision can't be detected? How can … Read more How To Bounce Ball In Paddle Game On Another Shape Using Collisions?

In Tkinter How Do I Remove Focus From A Widget?

I'd like to remove focus from a widget manually. Solution 1: You can focus to another dummy wi… Read more In Tkinter How Do I Remove Focus From A Widget?

How To Embed A Tkinter Window Into A Pygame Game Gui?

I have coded the Tkinter window and my pygame game separately. However, when I tried to link the tw… Read more How To Embed A Tkinter Window Into A Pygame Game Gui?

In Tkinter, Is There A Way To Change The Draw Stack Order Of Overlapping Canvases?

The Problem Using Python's tkinter, I'm trying to create custom buttons and other widgets b… Read more In Tkinter, Is There A Way To Change The Draw Stack Order Of Overlapping Canvases?

How To Get Variables From Toplevel Window To Main Window?

I have a code that gets keyinputs and show it on a entrybox in the toplevel window of the main wind… Read more How To Get Variables From Toplevel Window To Main Window?

How Do I Change These Two Balls Into Many Of Them?

i recently start learning about python, and made simple source of 2 balls in canvas which are movin… Read more How Do I Change These Two Balls Into Many Of Them?

How To Make Tkinter Event Work When Is Pressed?

I want to fill rectangles just like in paint. When mouse button is pressed I want every rectangle I… Read more How To Make Tkinter Event Work When Is Pressed?

Tkinter Gui With Progress Bar

I have a simple TK gui and a long process in a function attached to a button and I want a progress … Read more Tkinter Gui With Progress Bar

How Do I Move An Object On The Screen Using The Mousex And Mousey Coordinates In Tkinter

I am trying to move the green object called char relative to the mouse x and mouse y coordinates bu… Read more How Do I Move An Object On The Screen Using The Mousex And Mousey Coordinates In Tkinter

How To Stop Tkinter Text Widget Resize On Font Change?

I'm trying to create a simple word processor for starters to learn Python a bit better. I'm… Read more How To Stop Tkinter Text Widget Resize On Font Change?

Open Another Tkinter Program From A Main File

I have try this in my main program from tkinter import * import tkinter.filedialog import os root =… Read more Open Another Tkinter Program From A Main File

Tkinter Callback In A Class

I understand concept callback button in function and procedure.How to apply this code in class?I h… Read more Tkinter Callback In A Class

Python 3 Tkinter - How To Call A Function From Another Class

I am trying to get my save button to call a function from another class. I would like to click on t… Read more Python 3 Tkinter - How To Call A Function From Another Class

Intercepting The Close Window Button (tkinter Window) Throws An Tcl Error

I have a program that at some point opens a new window (filled with buttons and gizmo's for the… Read more Intercepting The Close Window Button (tkinter Window) Throws An Tcl Error

Tkinter Unknown Option -menu

I keep getting the error: _tkinter.TclError: unknown option '-menu' My MWE looks like: … Read more Tkinter Unknown Option -menu

Finding A Certain Block Of Code In Text

I have the following code so far: import sys from Tkinter import * import tkFileDialog from tkFileD… Read more Finding A Certain Block Of Code In Text

How To Get A Treeview Columns To Fit The Frame It Is Within

When dynamically changing a treeviews data, I want the rows to expand to the size of the treeview&#… Read more How To Get A Treeview Columns To Fit The Frame It Is Within

Centering A Tkinter Toplevel Window In Both Windows And Remote X11?

I know Tkinter can be an exercise in frustration at times, but I am stumped on the 'correct'… Read more Centering A Tkinter Toplevel Window In Both Windows And Remote X11?

Tkinter - How Can I Change The Default Notebook Border Color?

Below is my example code: from tkinter import * from tkinter import ttk root = Tk() root.geometry(… Read more Tkinter - How Can I Change The Default Notebook Border Color?

Python (tkinter)- Create Checkbox List From Listbox

I want to create a checkbox list for every listbox item. So, I have a listbox created with 4 differ… Read more Python (tkinter)- Create Checkbox List From Listbox