start
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
start [2022/03/05 11:45] – [GuiPy] roehner | start [2023/03/21 21:58] (aktuell) – [Mac M1/M2] roehner | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
=====GuiPy===== | =====GuiPy===== | ||
- | GuiPy is a Python IDE for teachers and students. Most Python IDEs only support text-based coding. GuiPy instead provides several graphical tools that support learning and teaching Python programming concepts. These include: | + | GuiPy is a Python IDE for teachers and students |
- | * GUI designer for Tkinter and TTK | ||
* Class modeler for modeling classes with attributes and methods | * Class modeler for modeling classes with attributes and methods | ||
* UML window with classes and their relationships. You can create objects by calling the constructor. Methods of objects can be called interactively. | * UML window with classes and their relationships. You can create objects by calling the constructor. Methods of objects can be called interactively. | ||
- | * Structogram editor | + | |
+ | | ||
* Sequence diagram editor to model sequence diagrams with lifelines and activations. | * Sequence diagram editor to model sequence diagrams with lifelines and activations. | ||
Zeile 14: | Zeile 14: | ||
=====Class Modeler===== | =====Class Modeler===== | ||
- | With class modeler you can create new classes and edit existing classes. It reads python source | + | The Class Modeler is an easy-to-use tool for modeling classes. The class modeler |
{{: | {{: | ||
- | The order of attributes and methods in the structure tree can be changed | + | The order of attributes and methods in the structure tree can be changed |
- | Call the class modeler | + | You call the class modeler |
- | The class modeler takes the UML standard into account, which is why //String// is also offered as a data type. When converted to Pytheon | + | The class modeler takes the UML standard into account, which is why //String// is also offered as a data type. When converted to Python |
=====UML Window===== | =====UML Window===== | ||
- | After you' | + | After you have modeled a class using the class modeler, it is time to test your model. In the uml window, |
- | If you then invoke | + | If you then call the context menu of the created object, you can edit the attributes and call the methods of the object. Changed attribute values are easy to see and objects created by a method call are immediately |
{{: | {{: | ||
Zeile 34: | Zeile 34: | ||
After testing your model in the uml window you can use it in a console or GUI program. | After testing your model in the uml window you can use it in a console or GUI program. | ||
- | It's quite difficult | + | It's quite complicated |
{{: | {{: | ||
Zeile 40: | Zeile 40: | ||
To create a GUI program, click the {{: | To create a GUI program, click the {{: | ||
- | To place a GUI component, first click its icon on the Tkinter or TTK tab and then click in the GUI form. Alternatively, | + | To place a widget, first click its icon on the Tkinter or TTK tab and then on the GUI form. Alternatively, |
- | With the symbol | + | Use the {{: |
- | The GUI form has a context menu for editing the components. | + | The GUI form has a context menu for editing the widgets. |
- | + | ===== Structogram | |
- | + | ||
- | ===== Struktogram | + | |
GuiPy has a structogram editor that can be used to create and edit structograms. | GuiPy has a structogram editor that can be used to create and edit structograms. | ||
- | The modeling of processes with structograms on a programming language-independent level plays an important role in computer science lessons because algorithms can be modeled on an abstract level without specific programming language details. An algorithm can be understood without being able to program it yourself in Python. | + | The modeling of processes with structograms on a programming language-independent level plays an important role in computer science lessons because algorithms can be modeled on an abstract level without specific programming language details. An algorithm can be understood without being able to program it yourself in Python. |
- | The reverse | + | Python source code can be generated from structograms, |
{{: | {{: | ||
Structural chart elements can be inserted into and extracted from a structogram using Drag& | Structural chart elements can be inserted into and extracted from a structogram using Drag& | ||
- | The green P generates | + | Using Drag& |
+ | The green P generates a Python function from the structogram as far as possible. In the configuration, | ||
===== Sequence diagram editor ===== | ===== Sequence diagram editor ===== | ||
- | The Sequence Diagram Editor allows you to create a sequence diagram interactively. Lifelines come in two forms, actor and named head. They are inserted using the toolbar. To create a connection between lifelines, use the context menu of a lifeline and call //connect to// there. To change texts, call up the text editor by double-clicking. | + | The Sequence Diagram Editor allows you to create a sequence diagram interactively. Lifelines come in two forms, |
{{: | {{: | ||
Sequence diagrams are saved with the file extension psd. These are text files that can also be edited with external text editors. | Sequence diagrams are saved with the file extension psd. These are text files that can also be edited with external text editors. | ||
+ | ===== Operating systems ===== | ||
+ | |||
+ | ==== Windows ==== | ||
+ | GuiPy is a Windows Application. | ||
+ | |||
+ | ==== Linux ==== | ||
+ | |||
+ | GuiPy operates under Linux with the //wine// extension. You find installation hints on the [[https:// | ||
+ | |||
+ | ==== Mac ==== | ||
+ | |||
+ | GuiPy works on a Mac with CrossOver Office (Wine) as well as in a virtualized windows environment. On a 64-bit Mac it works under the virtualization software VMWare Fusion. You can use GuiPy with the [[https:// | ||
+ | |||
+ | ==== Mac M1/M2 ==== | ||
+ | |||
+ | On a Mac with M1 or M2 processor you can set up GuiPy as follows. First, download the free UTM software https:// | ||
+ | |||
+ | {{: | ||
+ | |||
+ | The UTM instructions for downloading a Windows ISO file are complicated and often do not lead to the goal. Therefore, the next step is to install the test version of Parallels for Mac https:// | ||
+ | |||
+ | In Windows 11, Python is then installed first and then GuiPy. Download and install a 64-bit version of Python (x64/amd) from https:// | ||
+ | |||
+ | Currently the 64-bit " | ||
+ | |||
+ | After starting GuiPy, there is a message about a missing Python version. Close both associated windows. Then open the configuration via the tools menu. Click " | ||
+ | |||
+ | {{: | ||
+ | Finally, select the pythin version provided in GuiPy and activate it. | ||
+ | {{: |
start.1646477130.txt.gz · Zuletzt geändert: 2022/03/05 11:45 von roehner