본문 바로가기

분류 전체보기408

index source file download : http://www.pythonguis.com/d/pyqt6-source.zip book Home : pythonguis.com [ QT Home ] Qt Widgets C++ Classes : https://doc.qt.io/qt-5/qtwidgets-module.html 2023. 3. 10.
Styling Qt Applications It is easy to appreciate the clean, native look that Qt effortlessly provides by default. But for less business-like applications, plain gray widgets and bog-standard fonts don't always set the right tone. Even the drabbest utility or data entry application occasionally benefits from the addition of icons or the judicious tweaking of fonts to enhance usability. Fortunately, Qt's flexibility allo.. 2023. 3. 8.
Building Applications with QMainWindow import sys from PyQt5 import QtWidgets as qtw from PyQt5 import QtGui as qtg from PyQt5 import QtCore as qtc class SettingsDialog(qtw.QDialog): """Dialog for setting the settings""" def __init__(self, settings, parent=None): super().__init__(parent, modal=True) self.setLayout(qtw.QFormLayout()) self.settings = settings self.layout().addRow( qtw.QLabel('Application Settings'), ) self.show_warning.. 2023. 3. 8.
Handling Events with Signals and Slots Support for Signals and Slots : https://www.riverbankcomputing.com/static/Docs/PyQt5/signals_slots.html Using Qt Designer : https://www.riverbankcomputing.com/static/Docs/PyQt5/designer.html 신호 및 슬롯 기본 사항 object1.signalName.connect(object2.slotName) 슬롯 은 신호를 수신하고 이에 응답하여 작동할 수 있는 객체 메서드입니다. 이벤트에 대한 애플리케이션의 응답을 구성하기 위해 신호를 슬롯에 연결합니다. 신호는 이벤트 유형에 대한 응답으로 방출될 수 있는 개체의 특수 속성입니다. 이벤트는 사용자 작업, 시간 제한 또.. 2023. 3. 8.
Building Forms with QtWidgets 2 Building Forms with QtWidgets One of the first steps in application development is prototyping your app's GUI. With a wide range of ready-to-use widgets, PyQt makes this very easy. Best of all, we can move our prototype code directly into an actual application when we're done. In this chapter, we're going to get familiar with basic form design over the following topics: Creating ba.. 2023. 3. 8.
Deep Dive into PyQt 1 Section 1: Deep Dive into PyQt In this section, you will explore the core features of PyQt. By the end of this section, you should be comfortable with the basic design workflow and coding idioms involved in writing PyQt applications and feel confident in your ability to construct simple PyQt interfaces. The following chapters are in this section: Chapter 1, Getting Started with PyQt Chapter 2,.. 2023. 3. 8.
Understanding Layouts In this chapter, we will focus on the following topics: Using Horizontal Layout Using Vertical Layout Using Grid Layout Using Form Layout Understanding layouts As the name suggest, layouts are used for arranging widgets in the desired format. On arranging certain widgets in a layout, certain size and alignment constraints are applied to the widgets automatically. For example, on increasing the s.. 2023. 3. 1.
Running Python Scripts on Android and iOS In this chapter, you will learn to run Python scripts on Android devices as well as on iOS. You will learn about the following topics: Copying scripts from PC to Android devices Prompting for a username and displaying a welcome message Understanding different buttons in a Dialog box Performing single selection from a list Performing multiple selections from a list Displaying a Date Picker dialog.. 2023. 2. 28.
Using Google Maps In this chapter, you will learn to use Google Maps in Python applications and explore the different advantages provided by Google. You will learn to do the following tasks: Find out details of a location or landmark Get complete information from latitude and longitude values Find out the distance between a two locations Display a location on Google Maps Introduction The Google Maps API is a set .. 2023. 2. 28.