Skip to main content

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


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.12.tar.gz (42.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

SimpleWindow-0.12-py3-none-any.whl (30.1 kB view details)

Uploaded Python 3

File details

Details for the file simplewindow-0.12.tar.gz.

File metadata

  • Download URL: simplewindow-0.12.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

Hashes for simplewindow-0.12.tar.gz
Algorithm Hash digest
SHA256 ca2dee0ec2bcf4f21b617f50b6ec57109f858ec6fc011506a102a5cb17427343
MD5 70f162a35c9cb2aec2db86cd2d22cf4e
BLAKE2b-256 d51d547472462d7122373f9082bbda8e056ce38ba9194602c7d6f81e4f4e54d0

See more details on using hashes here.

File details

Details for the file SimpleWindow-0.12-py3-none-any.whl.

File metadata

  • Download URL: SimpleWindow-0.12-py3-none-any.whl
  • Upload date:
  • Size: 30.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for SimpleWindow-0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 afd35428a9eb05db0948d9162231fe9dfdf03e5d8ea1d5afe8b979918b19cd6b
MD5 eada3ae9afd9e9c21678897b35ee2460
BLAKE2b-256 29dbe63053dc235c70200af67716f7f0fb59888e186992b4a3836542ca0416ad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page