A package to easily create windows in Python using PyOpenGL, GLFW, OpenCV-Python, NumPy, pywin32 and ctypes
Project description
SimpleWindow
A package to easily create windows in Python using PyOpenGL, 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.4.tar.gz
(41.9 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.4.tar.gz.
File metadata
- Download URL: simplewindow-0.4.tar.gz
- Upload date:
- Size: 41.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e39aea287949134982b5b6656d1f9668ccbc6eb288c47131232f5797018eb91
|
|
| MD5 |
8ce25fe7ac9d4339eec52b68bc9a6284
|
|
| BLAKE2b-256 |
4c7eb73a7799ce953536977bdfe85bfe2fd30fbfe892ce9e7e3e94a5c0bdf661
|
File details
Details for the file SimpleWindow-0.4-py3-none-any.whl.
File metadata
- Download URL: SimpleWindow-0.4-py3-none-any.whl
- Upload date:
- Size: 29.8 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 |
0ddcd5bd2ebe8cc19601bf238862ea3e57a2fb5ed9096e435aa395758d32e248
|
|
| MD5 |
e002c6f7568246997d02c5f7d714b1dd
|
|
| BLAKE2b-256 |
d2c164a5f353df7f300a1b789e80ddcf805ac2dfc1905323168172320faae6e4
|