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.19.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.19.tar.gz.
File metadata
- Download URL: simplewindow-0.19.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 |
cde57f3719597e2e4315028b8b0309b7959c7c7e28dbc82296adde65e81f9a59
|
|
| MD5 |
75a6f9ff0c8cd3d9deca47a53f535163
|
|
| BLAKE2b-256 |
504a0989cf563a38604b34a18329aaffd0c0bd36c9d19ca41c9f682b83c849c0
|
File details
Details for the file SimpleWindow-0.19-py3-none-any.whl.
File metadata
- Download URL: SimpleWindow-0.19-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 |
c66ca40a593f03790325501e115515f6d47e051f7cb2d0bd5e98d84154775ba9
|
|
| MD5 |
6327e280fe483832bc765398779bd41b
|
|
| BLAKE2b-256 |
db74e0f7443db1e4182ac0788dc7e6ad358bee5aaf7ba3efcf1d7d670a6d2fc0
|