Skip to content

Files

Latest commit

 

History

History

Pygame-Buttons

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Buttons in Python

Aim 🎯

  • How to make buttons in python
  • Why to use them
  • To be able to design and animate buttons in python .
  • Make buttons use in any GUI based applications . ( It will be preety handy )
  • To Redirect user to any other module using buttons .

Details 🛈

Library README Install
Pygame Pygame/PyPi pip install pygame

What is Included Inside ✨

  1. Animating Button Using MOUSEOVER Porperty of pygame .
  2. Adding Image Buttons.

    i. PNG images as buttons . ii.Simple Color images as buttons .

  3. Assigning Loop Switching and Module Switching to Buttons .
  4. Taking Input from USER and rendring it on a button .
  5. Applying logic to leave/quit buttons .

How to get Started 🤔

  • clone the repo or copy the source code ( be sure you maintain files in same directory ) .
  • Run main.py .
  • Enter your name -> click play -> welcome screen -> come back -> click close .
  • You will be headed to next module -> check out all buttons .
  • Looks cool !! .
  • Check out line of code and then start making changes , happy coding ! .

How it may Look 👀


Author : LakhanKumawat