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.10.tar.gz
(42.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.10.tar.gz.
File metadata
- Download URL: simplewindow-0.10.tar.gz
- Upload date:
- Size: 42.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ac65382f93e2d775e9e849098c7d86413c4d34d3210247af66ed186aeb5eadb
|
|
| MD5 |
1cffee5456f29d29f650d64b6e2dbeae
|
|
| BLAKE2b-256 |
cf43a517ed1b5c0eb6c1f0e8b22a0b15013994063537abac2e7ab8c6d84ca87e
|
File details
Details for the file SimpleWindow-0.10-py3-none-any.whl.
File metadata
- Download URL: SimpleWindow-0.10-py3-none-any.whl
- Upload date:
- Size: 30.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 |
f70411dd076a1b3839a99d573de9a06954fa0b39f558ce9974b79a661c7eade7
|
|
| MD5 |
e11026dc87c075de9f9d26050085fff9
|
|
| BLAKE2b-256 |
df51c270aa035c96d8a3baeffbe46f36dd5c030beda1ddcc5b45fd121eac03a9
|