A Simple icon to replace the tkinter feather for your programs
Project description
mygui 0.0.1
A Simple icon to replace the tkinter feather for your programs.
example:
#================================================================================
import os
from mygui import lgrid
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:
os.system('pip install create_icon')
import create_icon
print('File Created')
root.wm_iconbitmap(default=tempFile)
lgrid(root,'Label placed in grid 5,5', 5,5)
lgrid(root,'Label placed in grid 6,6', 6,6)
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
mygui-0.0.1.tar.gz
(2.7 kB
view hashes)
Built Distribution
mygui-0.0.1-py3-none-any.whl
(2.8 kB
view hashes)