A Simple icon to replace the tkinter feather for your programs
Project description
create_icon 0.1.0
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.1.2.tar.gz
(45.2 kB
view hashes)
Built Distribution
Close
Hashes for create_icon-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29ec7003d00e80dd2ce2b4a5d5c148c18c9e77d8e1c2420047d6877cc15f276c |
|
MD5 | 1eaba84a87d9d05fa5e9188e8c33aef3 |
|
BLAKE2b-256 | 13508cc379662a48486f55e2621893a9a5927986a5aecfd421e768755e806996 |