A Window Manager for Tkinter On Windows 10
Project description
WM
A Window Manager for Tkinter On Windows 10
How to install
pip install 574d
How to test
from WM import TK ... if __name__ == '__main__': Tk = TK() Tk.mainloop()
I developed a code pattern based on the Sword Art Online (SAO) for Tkinter
For Example:
System Call Generate
Button
Element
<Object-ID>
Discharge
!
Discharge is only a SAO reference.
class Call(TkData, INHERIT): # Object-IDs are here. ... szTitle, szWindowClass = 'WM', 'WM' ... class System(Call): # class TK(System, Call.Tk): Call = Call # System.Call ...
class Element(E.Widget, E.PhotoImage, System, Call): # type: ignore def __new__(cls, name: str = '', *_: E.Any, generic: bool = False, **__: E.Any): E = GENERATE.__dict__[name](*_, **__) if generic: del E._[-1] return E class Generate(System, Call): def __init__(self): super(System, self).__init__() # info when called ... # with Element Constructor Element('Frame', self.TK).grid(0, 0, 'nsew', padx=1, pady=1)({0: (1, 1), 1: (0, 1), 2: (1, 0)}).grid_remove() self.W['F'][-1].grid() # another way to do the same my_frame = ttk.Frame(self.TK) my_frame.grid(row=0, column=0, sticky='nsew', padx=1, pady=1) my_frame.grid_rowconfigure(0, weight=1) my_frame.grid_rowconfigure(2, weight=1) my_frame.grid_columnconfigure(0, weight=1) my_frame.grid_columnconfigure(1, weight=1) my_frame.grid_remove() my_frame.grid()
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
574d-0.0.0rc0.dev2.tar.gz
(93.1 kB
view details)
Built Distribution
File details
Details for the file 574d-0.0.0rc0.dev2.tar.gz
.
File metadata
- Download URL: 574d-0.0.0rc0.dev2.tar.gz
- Upload date:
- Size: 93.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74620572f50dde3e1fb9a1fcd80330af29dd580c23d975423c6430ba09b33aaf |
|
MD5 | 6db1bddc65b6a60289c19cd1feb6879e |
|
BLAKE2b-256 | 33c59fa099c98eaaccbef6ddb0b292986aa29c9932965857ab9b7db037f768cc |
File details
Details for the file 574d-0.0.0rc0.dev2-py3-none-any.whl
.
File metadata
- Download URL: 574d-0.0.0rc0.dev2-py3-none-any.whl
- Upload date:
- Size: 93.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31505e641c974a63337e14a048324e45579f04aa4166cffd581809a775b06144 |
|
MD5 | 6b25a1628ed2fb4b7f3c0e2dce466d30 |
|
BLAKE2b-256 | 5d8af0109dacc066b55a9d69fa2aee70faf3e1ac9e3687d0ad1e1139f0912c0e |