Skip to content
Advertisement

Tag: tkinter

Advertising on a tkinter program

My question is : is it possible to put ads on a tkinter program , something like google ads or something , because I made a program which a lot of people started using and I am not getting any benefits from it , is there a way ? Answer There is nothing built-in to tkinter, nor available as a

Transient input window

I have a system, where there is a popup window that requests input from the user, and then returns that input to the main body of code for processing. I have the window popping up correctly, using transient to ensure it stays ontop, however I cannot find a way to make the window return data to the place it was

Execute a command on Remote Machine in Python

I am writing a program in python on Ubuntu, to execute a command ls -l on RaspberryPi, connect with Network. Can anybody guide me on how do I do that? Answer Sure, there are several ways to do it! Let’s say you’ve got a Raspberry Pi on a raspberry.lan host and your username is irfan. subprocess It’s the default Python

Printing a list to a Tkinter Text widget

I have a list of strings, and I want to print those strings in a Tkinter text widget, but I can’t insert each string in a new line. I tried this but didn’t work: Answer Append newline (‘n’) manually: BTW, you don’t need to use index to iterate a list. Just iterate the list. And don’t use list as a

‘image “pyimage2” doesn’t exist’?

This is where the error is found: I don’t understand why this isn’t working. I have another image in my program here: I also get a similar error when I try to call the above definition after it has already been initially called (for example when my program logs out) so I have readjusted so the window simply deiconifies instead

ImportError: No module named ‘Tkinter’

For some reason, I can’t use the Tkinter or tkinter module. After running the following command in the python shell or I got this error ModuleNotFoundError: No module named ‘Tkinter’ or ModuleNotFoundError: No module named ‘tkinter’ What could be the reason for and how can we solve it? Answer You probably need to install it using something similar to the

Change the value of a variable with a button (Tkinter)

I want to change the value of a variable just with a button, i don’t want to create a new entire function just like that: How i can do that? (I need to do that for six buttons, making six functions it’s not an option) Answer i need to make this for 6 buttons… If each button modifies the same

Is there a Tkinter/ttk style reference?

With ttk one can produce code like the following: Is there a list of the different options (e.g. font, foreground, padding) and the values (e.g. helvetica 24, red, 10) associated with each of them? I’ve been searching online and have yet to find such a reference. Also, is there a css-like thing we can use to style a TKinter GUI?

Can I change the title bar in Tkinter?

I’m using Tkinter as GUI for my program, but as I see, many programs don’t have standard look as Tkinter does. By standard look I mean standard title bar, borders, etc. For example, Tkinter’s title bar: vs GitHub’s title bar: See how they have their own custom exit, resize and minimize buttons? Is it possible to achieve that look using

Advertisement