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.18.tar.gz
(44.0 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.18.tar.gz.
File metadata
- Download URL: simplewindow-0.18.tar.gz
- Upload date:
- Size: 44.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cc1cf5a5ed4c92946191651977b3f47d393972891ef7cd4de968dd8e3e4c036
|
|
| MD5 |
c2a4d7d8a85dd0ea4ab3b978ac912910
|
|
| BLAKE2b-256 |
0ac33c9e162c8067d1e2c7114aa31d485d42a73d0807e3158fb09e420f19742d
|
File details
Details for the file SimpleWindow-0.18-py3-none-any.whl.
File metadata
- Download URL: SimpleWindow-0.18-py3-none-any.whl
- Upload date:
- Size: 31.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf7e99c8283def41cd30020ae4133a987fe0968f414508f7804ee25acea0e834
|
|
| MD5 |
d678a6954c09fb030ddd7c09926b1085
|
|
| BLAKE2b-256 |
e8d86bfb99602c7c2950e186e31194b4fd4f0973b22d263aa958929b7be965a4
|