Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 132 - 2615_KEC
P. 132

    B4
                      CANVAS IN PYTHON                                                                       CHAPTER

                         Learning Outcomes

                         The student will be able to:
                            understand the concept of a canvas in programming.
                            know about SimpleGUI.
                            learn about coordinate systems.
                            create basic graphics.

                      In programming, drawing is similar to sketching on paper, but instead of using a physical sheet,
                      you use a digital canvas. A canvas in Python is a digital space, like a blank screen, where you can

                      draw various shapes, lines and even write text using code. To work with this canvas in Python, you
                      use a special library called SimpleGUI.

                                CHARACTER USER INTERFACE

                      A Character User Interface (CUI),  sometimes  known as Command  Line Interface (CLI),  is

                      text-based.  Instead  of clicking  on buttons  or icons,  you  type  commands  to  interact  with the
                      system. The computer only displays text and you type commands to perform tasks like opening
                      files  or running  programs.  For example,  Command  Prompt  on Windows  is  a  Character  User
                      Interface (CUI).

                      130   Premium Edition-VII

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