Skip to content

Tag: tkinter

Cannot bind NumPad minus key on Linux with Tkinter

I encountered an issue regarding KeyPress binds in tkinter when switching between Windows and Linux while using a NumPad. Using self.bind(“-“, function) works on Windows, however is not triggered on Linux. With the following code snippet I found out that the events of a keyboard-minus differs from…

How can I use python 3 tkinter in Linux?

I tried the following program in Win10, it works But I want to use it in linux mint and it display nothing (it display a window with a button on my win10) from tkinter import * tk=Tk() btn= Button(tk,text=”ttk”) btn.pack() I want it display a window with a button on my linux mint Answer You need t…

How to open new bash terminal using Python

I am trying to open a new terminal window in Tkinter application. I’ve used os.system(“/bin/bash”) but it works in current bash only. Which stops runnning code and causes application freeze. I want to open new Terminal. How to do that? gedit like programs work fine without disturbing current…

Tkinter look (theme) in Linux

I know that Tkinter is not so modern, not so cool and maybe better to use PyQt or etc. But it is interesting for me can Tkinter look not so ugly in Ubuntu (Linux). Looks that brew version (in OS X) of python’s Tkinter compiled with built-in theme and looks good: But Ubuntu’s Tkinter makes me cry: …