A Simple icon to replace the tkinter feather for your programs
Project description
create_icon 0.3.8
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
MIT License
Copyright (c) 2022 Michael Mulvey
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
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.3.8.tar.gz
(47.4 kB
view hashes)
Built Distribution
Close
Hashes for create_icon-0.3.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fbf866ccb3f3c89916c2bf49815ded1eca2da7f30f80ef48ca2d2d8e723fe5a |
|
MD5 | 5202f2c08c60877c7b00f3b333236fae |
|
BLAKE2b-256 | 749492facce8c602ab04561828ef27d126c8165f2f60fd283b426e2bed8936c3 |