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, Undestroyable=False, Icon="")
# 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 status
WindowState = SimpleWindow.GetWindowStatus(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 WindowState["Open"] == False or WindowState["Open"] == 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.15.tar.gz
(43.2 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.15.tar.gz.
File metadata
- Download URL: simplewindow-0.15.tar.gz
- Upload date:
- Size: 43.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d810ddae25d839aee243159acc50da2a6cce4e541f98f8d34ec77b97628f29c7
|
|
| MD5 |
3b3ce906bbb60749de12e2ef7dcb2497
|
|
| BLAKE2b-256 |
cf23e9f9f84a7b1cc3c753bf3712c5b69428b226044e11f9de0fbaa9b44e423e
|
File details
Details for the file SimpleWindow-0.15-py3-none-any.whl.
File metadata
- Download URL: SimpleWindow-0.15-py3-none-any.whl
- Upload date:
- Size: 31.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
888f66c532277aec99d95d1b374700fbf9d8c27bcf1083bb4e98e45f9f624c22
|
|
| MD5 |
6ede70561b1c82787c59d4a4782149cc
|
|
| BLAKE2b-256 |
3ff4f4ed5192e854a81ac064bc258fe622d01acee03fc67443c3bd35cf821f59
|