No project description provided
Project description
fwif
fwif (Floating Window Framework) is a powerful Python framework built on top of Tkinter. It allows users to create highly configurable, keyboard-driven graphical user interfaces (GUIs) that are ideal for scratchpad-style applications. With this framework, you can easily build custom alternatives to the scratchpads used with i3 or create your own keyboard-centric applications.
Features
- Keyboard-driven: Your fwif applications are keyboard-driven, you can easily associate keybindings with the different functions of your application.
- Floating window support: The framework sets the necessary window manager (WM) attributes for your applications to behave like floating windows by default. This is especially useful when integrating your applications with tiling window managers like i3.
Getting Started
To get started with fwif, follow these steps:
-
Install the framework by running the following command:
pip install fwif
-
Import the BaseApp class from the framework in your Python code:
from fwif import FloatingWindow
-
Create a subclass of BaseApp to define your custom application.
-
Override the
setup_keybindings
method to add your custom keybindings:class MyApp(FloatingWindow): def __init__(self): super().__init__() def setup_keybindings(self): super().setup_keybindings() self.keybindings.add('h', self.hello) def hello(self): print("Hello, World!")
-
Run your application by instantiating your subclass and calling the
run()
method:app = MyApp() app.run()
For more details and examples, please refer to the example provided.
Contributing
Contributions are welcome! If you find any issues, have suggestions, or want to contribute new features or improvements, please feel free to open an issue or submit a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for more information.
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
File details
Details for the file fwif-0.1.0.tar.gz
.
File metadata
- Download URL: fwif-0.1.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.3 Linux/6.3.6-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | deb36e4f19df1f995c0f73126521c5b60f463bd853ae8896506884d488aef927 |
|
MD5 | 73a00a9e443ab70af0a4cd49352d6fec |
|
BLAKE2b-256 | 165e0227e2b5d94c8670fcf0da8481dd1697d59f22c03f9fc45335ea7b18ab1e |
File details
Details for the file fwif-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: fwif-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.3 Linux/6.3.6-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b263290f56b174ad5d5ab9d12b263942fc01a9bf88f4d7d15cebfcd0c7b8148e |
|
MD5 | 8117eb79906ebe23ee131729ca02cb7e |
|
BLAKE2b-256 | abd44ab6714397e397fe789f0c0bde210d3358f223f9d1d8e2da4f8d9fcf05c3 |