
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Make sure your python installation is 3.7 or higher.
You need the tk extension tkDnD for this framework. This can be automatically installed via pip argument. Make sure the python directory is writable (e.g. on Mac OSX, Python library are installed to /System/Library, which cannot be modified, even with sudo!).
pip install layoutx
(minimal version)
pip install layoutx[more_widgets, styles]
(full version)
python -m layoutx.install_tkdnd
(install tkdnd)
The command line tool: lxdesigner
can be used to easily design some forms.
For lxdesigner to function, you need to install addon more widgets.
Some dependencies of this project have a GPL v3 license. They are excluded into separate addons. Please note by installing these dependencies, you confirm to the GPL license agreement.
This project itself is licensed under MIT.
More information see: ttkwidgets Github
pip install layoutx[more_widgets]
More information see: ttkthemes Github
pip install layoutx[styles]
from layoutx import app # Import the app singleton
from layoutx.store import create_store
from layoutx.view import View, ResizeOption
store = create_store({}, { "name": "World" })
class RootView(View):
geometry = "250x50+100+100"
title = "My first app"
resizable = ResizeOption.NONE
template = """\
ScrollFrame
Box(orient="horizontal")
Label Hello
Input(value="{{name}}")
Button(command="{say_my_name}") Say my name!
"""
def say_my_name(self):
print(self.store.state["name"])
if __name__ == "__main__":
app.setup(store=store, rootView=RootView)
app.run()
Read the documentation for more information.
FAQs
Declarative tkinter layout engine with reactive data binding
We found that layoutx demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.