Questions tagged [tkinter.iconbitmap]

The window manager show it in the title bar decoration of a window or when this window is iconified.

9 questions
63
votes
14 answers

Why isn't .ico file defined when setting window's icon?

When I tried to change the window icon in the top left corner from the ugly red "TK" to my own favicon using the code below, Python threw an error: from tkinter import * root = Tk() #some buttons, widgets, a lot of…
CrushedPixel
  • 1,152
  • 2
  • 13
  • 26
1
vote
0 answers

tkinter iconbitmap not defined in chromebook

from tkinter import * from tkinter import font root =Tk() root.title("Imagess..") root.iconbitmap('myicon.ico') root.mainloop() ** 'myicon.ico' file is located in "PythonProjects" where the "Images.py" is saved. Here's what my terminal…
1
vote
1 answer

error, during using iconbitmap tkinter.TclError: bitmap "image\inventory.ico" not defined

I want to set the title of my tkinter application using iconbitmap but I am getting an error:- Traceback (most recent call last): File "c:\Users\prajval\Desktop\Am_pm\main.py", line 700, in root.iconbitmap('image\\inventory.ico') …
prajval
  • 11
  • 1
0
votes
0 answers

Tkinter Output Blurry for icon python 3.x

I have trawled the net and can't seem to find a satisfactory answer. Whenever I run a program that has a Tkinter GUI it always seems blurry/fuzzy (which I assume is a low resolution). See Here I saw a similar post here and that solves the problem…
0
votes
0 answers

The icon cannot be shown by using iconbitmap

from tkinter import * root = Tk() root.title('Icon') root.iconbitmap('Desktop/img.ico') root.mainloop() I typed the above code. However, the icon is not shown. How can I fix this?
hooon
  • 11
  • 1
0
votes
1 answer

How to solve file not found problem in python?

I had made a program where I require files from that directory where the python file is located. The files are located in the same folder where the python file located. I can't write the full path of the file in the python script I used the ./…
0
votes
1 answer

How can I have a custom icon in a Python tkinter program without hardcoding the path to the icon file? (tkinter, iconbitmap and cx_freeze)

I have a simple tkinter GUI I've been working on. I am familiar with changing the icon of the root window using root.iconbitmap("/path/to/icon.ico") and this is what I have been using while writing and testing my code. However, I am now at the stage…
0
votes
1 answer

How to set the argument for iconbitmap()?

I am creating an image viewer. But, I don't know how to set the argument for iconbitmap. I have tried bitmap, default but it says default is not defined. def open_to_browse(): global my_image mainframe1.filename =…
Ishita Katyal
  • 13
  • 1
  • 6
-2
votes
1 answer

How I solve file not found problem in python script?

I had made a program where I require files from that directory where the python file is located. The files are located in the same folder where the python file located. I can't write the full path of the file in the python script I used the ./…