Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 133 - 2615_KEC
P. 133

    GRAPHICAL USER INTERFACE

                     A Graphical User Interface (GUI) is the type of interface you most commonly use when interacting
                     with computers or mobile devices. In a GUI, you interact with visual elements like buttons, icons,
                     windows and menus. You can click on these elements or drag them around using a mouse or
                     touch gestures. For example, when you open a program or use a mobile app, you’re interacting
                     with a GUI.

                     CANVAS

                     A canvas is like a blank screen or a drawing board. In canvas you can display shapes, lines and
                     text. When you write drawing commands in Python, they appear on this canvas. The canvas uses
                     a coordinate system to determine where the shapes should be drawn.

                               LIBRARY IN PYTHON

                     A library in Python is a collection of pre-written code that you can use in your own programs.
                     Libraries contain functions, classes and tools that make programming easier. Instead of writing
                     everything from scratch, you can use these libraries to save time and effort. If you want to work
                     with graphics, you can use a library like SimpleGUI. You just need to open the toolkit (import the
                     library) and start using the tools (functions and classes) inside it.

                               SIMPLEGUI

                     SimpleGUI is a Python library that allows you to easily create graphics, shapes and animations.
                     It's designed specifically for beginners and is often used in the CodeSkulptor3 online environment.
                     In SimpleGUI, you can draw shapes like lines, circles and polygons and even add text on the

                     screen. The best part is you can interact with your drawings using a mouse!

                     CODESKULPTOR3

                     CodeSkulptor3 is an online platform that allows you to write and run Python code directly in your
                     web browser. It is designed specifically for beginners, making it easier to learn programming by
                     focusing on simple graphics and animations. It includes SimpleGUI, a Python library used for

                     creating simple graphics and animations. With SimpleGUI, you can draw shapes like lines, circles
                     and even create interactive programs.
                     Let us understand how to open CodeSkulptor3:

                     1.  Type the link https://py3.codeskulptor.org/ in the web browser and press the enter key.

                     2.  The following Codeskulptor3 screen will appear:

                                                                                                     Canvas in Python   131

| 128 129 130 131 132 133 134 135 136 137 138 |