Skip to main content

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


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.9.tar.gz (41.9 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.9-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for simplewindow-0.9.tar.gz
Algorithm Hash digest
SHA256 ee13824e3625c91e0ec33706235ae624c2d03ae1da91c55fc3f9c0d4b314a37b
MD5 f241efb58c6d6bd78fa817155efbb73c
BLAKE2b-256 a1cc5f6b99392b2a0ecd8afe8332700bf23f7ef0f455f2b157fd7d1d2dca20e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: SimpleWindow-0.9-py3-none-any.whl
  • Upload date:
  • Size: 29.9 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 6ea4bde6dfe71a7f4263a47ef6fc3e320b5f7ba0700686355324d20b0cebf1f5
MD5 b9ee8a62cb668cc2c552874ed25bcfeb
BLAKE2b-256 79401bc8c8099af692fa8d1e376e6f691c372fa6f7b4f7d23f0cf0c61585b977

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