Python Integration Primer - Notes
3.1 Graphical User Interface (GUI) and Database Connectivity in Python
- Libraries for GUI development:
• PyQt: Full-featured GUI framework with widgets and event handling.
• Tkinter: Built-in Python GUI package with basic widgets like Button, Label, Entry, Scrollbar, etc.
- Containers and Layouts:
• Frame: Used to group widgets.
• Canvas: Used for drawing shapes or displaying images.
- Common Widgets:
• Button, Label, Text, Radiobutton, Checkbutton, Scrollbar, Entry.
- CRUD Operations with Database:
• Connect Python GUI to databases such as SQLite, MySQL.
• Perform Create, Read, Update, Delete operations from GUI forms.
3.2 GUI Basic Image Processing
- Using OpenCV library for image manipulation.
- Basic operations:
• Load and display images.
• Resize, rotate, crop.
• Apply filters and transformations.
- Tkinter or PyQt can be used to create simple GUI-based image editors.
3.3 Django Web Application Framework
- Django is a high-level Python web framework.
- Features:
• MTV (Model-Template-View) architecture.
• Built-in ORM for database connectivity.
• Automatic admin interface.
• Routing, templates, forms, authentication.
- Used to build scalable, secure web applications.