Getting Started - 01

CactusGUI is a GUI for programs using the Pygame game engine. Before using CactusGUI you should have a general knowledge of Python and you should also play around with Pygame a bit (Maybe you don't even need a GUI?)

For learning how to use CactusGUI, let's start first with a blank Pygame app:




import pygame

# Window Vars
windowWidth = 500
windowHeight = 300
windowTitle = 'Pygame Example'


# Init
pygame.font.init()
screen = pygame.display.set_mode((windowWidth, windowHeight))
clock = pygame.time.Clock()
running = True
pygame.display.set_caption(windowTitle)



while running:
	
	for event in pygame.event.get():
		if event.type == pygame.QUIT:
			running = False 
	
	
	pygame.display.flip()
	clock.tick(60)
	

When you run the code, it should give you a blank black window:

 

Part 2 >>>