Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

WM

A Window Manager for Tkinter On Windows 10

Video Test

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.

./WM/core.py

class Call(TkData, INHERIT):  # Object-IDs are here.
    ...
    szTitle, szWindowClass = 'WM', 'WM'
    ...

class System(Call):  # class TK(System, Call.Tk): 
    Call = Call  # System.Call
    ...

./WM/views.py

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()

Metadata

Release files for 574d 0.0.0rc0.dev2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for 574d 0.0.0rc0.dev2
File Size Uploaded
574d-0.0.0rc0.dev2.tar.gz 93.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for 574d 0.0.0rc0.dev2
File Interpreter ABI Platform
574d-0.0.0rc0.dev2-py3-none-any.whl Python 3 none any Details

Total release size: 187.0 kB

Release files / 574d-0.0.0rc0.dev2.tar.gz

Download URL 574d-0.0.0rc0.dev2.tar.gz
Size 93.1 kB
Tags Source
SHA-256 checksum
How to use checksums
74620572f50dde3e1fb9a1fcd80330af29dd580c23d975423c6430ba09b33aaf
BLAKE2b-256 checksum
How to use checksums
33c59fa099c98eaaccbef6ddb0b292986aa29c9932965857ab9b7db037f768cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Release files / 574d-0.0.0rc0.dev2-py3-none-any.whl

Download URL 574d-0.0.0rc0.dev2-py3-none-any.whl
Size 93.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31505e641c974a63337e14a048324e45579f04aa4166cffd581809a775b06144
BLAKE2b-256 checksum
How to use checksums
5d8af0109dacc066b55a9d69fa2aee70faf3e1ac9e3687d0ad1e1139f0912c0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Release history Release notifications | RSS feed

0.0.0

This release

0.0.0rc0.dev2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page