Use customized GUI
Project description
'irene-pro'
This is my customized user interface which is rooted from tkinter package.
nothing big that I did from here that is different from what already in tkinter, but I rather set my default parameters and
styles for those rooted to ttk, example Combobox.
this is the first version, and later I will keep making extra-improvement including adding default icons to buttons and other
cool stuffs until it will be large package or framework in coming years.
=========how to use the package======
from irene-pro import widgets, logic
button = widgets.btn(master = root, text = 'send')
button.pack(side = LEFT)
class Scrol_frame(Canvas):
def __init__(self, master, scr_x = None, scr_y = None, **kwargs):
super().__init__(master = master,bg = master['bg'], **kwargs) # master = master,
self.Scrol_frame = frame(self)
self.Scrol_frame.bind("<Configure>", lambda e: self.configure(scrollregion = self.bbox("all")))
self.create_window((0, 0), window = self.Scrol_frame, anchor = "nw")
if scr_y:
self.config(yscrollcommand = scr_y.set)
scr_y.config(command = self.yview)
scr_y.pack(side = RIGHT, pady = h(1), padx = w(1),fill = Y)
if scr_x:
self.config(xscrollcommand = scr_x.set)
scr_x.config(command = self.xview)
scr_x.pack(side = BOTTOM, pady = h(2), padx = w(1), fill = X, expand = True)
num = re.compile("\d{1,}")
try:
found_num = num.findall(master['bg'])
if found_num:
text = master['bg'][:master['bg'].index(found_num[0])]
num = int(master['bg'][master['bg'].index(found_num[0]):]) - 3
self.config(bg = text+str(num))
except TypeError:
pass
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
Built Distribution
Hashes for irene_pro-0.0.23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0562190f26b2d6d89a17bf177e7e64a2b8b318f7e9ab058b5be0cf02eb1c418e |
|
MD5 | 56fb8680dd25ec7b30bda3d7cd3f8291 |
|
BLAKE2b-256 | 977978593b14ca04e80b13c31fc02a6bf5ab41e832cef6c7e8fa1502d9ab2e72 |