A Simple icon to replace the tkinter feather for your programs
Project description
create-icon 0.5.0
Caveman Software® 2024
Released 8/18/22
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 window Titlebar (2024) rev
if os.name == 'nt':
homepath = os.path.expanduser('~')
tempFile = os.path.join(homepath, 'Caveman Software', '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
Diagram 1
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.5.0.tar.gz
(48.6 kB
view details)
Built Distribution
File details
Details for the file create_icon-0.5.0.tar.gz
.
File metadata
- Download URL: create_icon-0.5.0.tar.gz
- Upload date:
- Size: 48.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61c32f250fc57dd51b933890c5c01c95398fdecc66c7e2192d9eacdeae08a5d3 |
|
MD5 | f0499b76db3a9b00ed881e3a3da5a496 |
|
BLAKE2b-256 | d47ee2daed46d7a352c44658017096de7b43da8a6d0a30d6b57ab61de50f3aef |
File details
Details for the file create_icon-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: create_icon-0.5.0-py3-none-any.whl
- Upload date:
- Size: 48.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce2ace37f6c2fad0fbe224817d26c6416a0adbdf7d910ec5dc3ba41f2546f8ed |
|
MD5 | a0d9fa021e652dfc32cb3e18172516f8 |
|
BLAKE2b-256 | 49e5685891798a70ac18c34036423d171488fe920e809dd03b858cc2ca4f9c0d |