A package to easily create windows in Python using GLFW, OpenCV-Python, NumPy, pywin32 and ctypes.
Project description
SimpleWindow
A package to easily create windows in Python using GLFW, OpenCV-Python, NumPy, pywin32 and ctypes.
Installation
pip install SimpleWindow
Usage
import SimpleWindow
import numpy as np
# Initialize the window, the window wont be shown until Show() is called
SimpleWindow.Initialize(Name="Example Window",
Size=(1280, 720),
Position=(100, 100),
TitleBarColor=(0, 0, 0),
Resizable=True,
TopMost=False,
Foreground=True,
Minimized=False,
Undestroyable=False,
Icon="",
NoWarnings=False)
# Create an image
Image = np.zeros((720, 1280, 3), dtype=np.uint8)
while True:
# The window will be shown now since its the first call of Show() since the Initialize() call
SimpleWindow.Show(Name="Example Window", Frame=Image)
# Get the window open state
WindowIsOpen = SimpleWindow.GetOpen(Name="Example Window")
# If the value is False then the window was destroyed by the code, if the value is None then the window got destroyed by the user
if WindowIsOpen == False or WindowIsOpen == None:
break
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
simplewindow-0.21.tar.gz
(44.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simplewindow-0.21.tar.gz.
File metadata
- Download URL: simplewindow-0.21.tar.gz
- Upload date:
- Size: 44.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78ebcc4a223661a636c24da1e63d5dca89d5258a08aaa512f1ed5b8032a0a018
|
|
| MD5 |
dc8e44373e8d9f4227dd18c26db4652e
|
|
| BLAKE2b-256 |
81d616fec65c105ba6dbf2e7250115e97c100f3acf923b597c010b8626f7e2a5
|
File details
Details for the file simplewindow-0.21-py3-none-any.whl.
File metadata
- Download URL: simplewindow-0.21-py3-none-any.whl
- Upload date:
- Size: 31.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c4752abd98b5ca59f12e88d2badc6971003890225ce1fc7219dd2857e6dd451
|
|
| MD5 |
a96335ec191f7f101f5688da46fac0bb
|
|
| BLAKE2b-256 |
392f524a38ecb05c0d2553b9d0c4a5ce6549899b141b240c845fa0917338a107
|