Skip to content

Virtual Desktop Environment write in python with pygame

License

Notifications You must be signed in to change notification settings

damp11113/PyVDE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyVDE

Virtual Desktop Environment write in python with pygame

image

import time

from PyVDE.desktop import Desktop
from PyVDE.App import AppWindow
import pygame
import threading

class MyFirstApp(AppWindow):
    def __init__(self):
        super().__init__()

    def init(self):
        print('Hello')
        self.window.fill((255, 255, 255))


desktopwindow = Desktop()

desktopwindow.register("myapp", MyFirstApp)

def delayopenapp():
    time.sleep(2)
    desktopwindow.runapp("myapp", (50, 50))

delayopenappthread = threading.Thread(target=delayopenapp)
delayopenappthread.start()

desktopwindow.start()

About

Virtual Desktop Environment write in python with pygame

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages