A Simple icon to replace the tkinter feather for your programs
Project description
create_icon 0.2.4
A Simple icon to replace the tkinter feather for your programs.
example:
#================================================================================
import os
from tkinter import Tk
root=Tk()
root.minsize(300,100)
# Add Icon to windows Titlebar if running Windows.
if os.name == 'nt':
homepath = os.path.expanduser('~')
tempFile = '%s\Caveman Software\%s' % (homepath, 'Icon\icon.ico')
if (os.path.exists(tempFile) == True):
root.wm_iconbitmap(default=tempFile)
else:
import create_icon
print('File Created')
root.wm_iconbitmap(default=tempFile)
root.mainloop()
#================================================================================
The above example allows the icon to be place in the menubar
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
create_icon-0.2.7.tar.gz
(45.8 kB
view hashes)
Built Distribution
Close
Hashes for create_icon-0.2.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6c18f65dbbc047966c679d7ef1c2da0aebab1835e6a9da797eae7d7f1fc90a0 |
|
MD5 | ad0c98994eb72b34ddb7ec2d09c43c74 |
|
BLAKE2b-256 | 77f86f501e51a494a8cca7c70663f386e5dc8998e73467fdf49f6e814c58f123 |