2
0
mirror of https://github.com/pyqt/examples.git synced 2025-08-28 12:27:40 +00:00

Update repository URL

This commit is contained in:
Michael Herrmann 2019-06-28 08:44:04 +02:00
parent 85ba327f66
commit 3091f1aec4
15 changed files with 15 additions and 15 deletions

View File

@ -12,7 +12,7 @@ label.show()
app.exec_()
```
For instructions how you can run this code, please see the [top-level README](https://github.com/1mh/pyqt-examples#running-the-examples).
For instructions how you can run this code, please see the [top-level README](https://github.com/pyqt/examples#running-the-examples).
The code works as follows: First, we import the necessary PyQt classes via the statement:

View File

@ -18,4 +18,4 @@ Some of the widgets you can see in this screenshot are:
* [QSlider](https://doc.qt.io/qt-5/qslider.html)
* [QProgressBar](https://doc.qt.io/qt-5/qprogressbar.html)
The source code for this application is in [`main.py`](main.py). For instructions how to run it, please see [here](https://github.com/1mh/pyqt-examples#running-the-examples). Don't worry if you don't yet fully understand the source code. The main purpose of this example is to give you a feel for what a widget is, and which ones are available. The next examples give you a more gradual route to more advanced PyQt topics.
The source code for this application is in [`main.py`](main.py). For instructions how to run it, please see [here](https://github.com/pyqt/examples#running-the-examples). Don't worry if you don't yet fully understand the source code. The main purpose of this example is to give you a feel for what a widget is, and which ones are available. The next examples give you a more gradual route to more advanced PyQt topics.

View File

@ -36,6 +36,6 @@ We conclude by showing the window and (as is required) handing control over to Q
window.show()
app.exec_()
For instructions how you can run this example yourself, please see [here](https://github.com/1mh/pyqt-examples#running-the-examples).
For instructions how you can run this example yourself, please see [here](https://github.com/pyqt/examples#running-the-examples).
The related [`QHBoxLayout`](https://doc.qt.io/qt-5/qhboxlayout.html) positions items horizontally. For an even more powerful approach, see [`QGridLayout`](https://doc.qt.io/qt-5/qgridlayout.html).

View File

@ -29,4 +29,4 @@ Finally, we show the button on the screen and hand control over to Qt:
button.show()
app.exec_()
For instructions how you can run this example yourself, please see [here](https://github.com/1mh/pyqt-examples#running-the-examples).
For instructions how you can run this example yourself, please see [here](https://github.com/pyqt/examples#running-the-examples).

View File

@ -44,4 +44,4 @@ We've now connected the necessary components for displaying the user interface g
window.show()
app.exec_()
For instructions how to run this example yourself, please see [here](https://github.com/1mh/pyqt-examples#running-the-examples).
For instructions how to run this example yourself, please see [here](https://github.com/pyqt/examples#running-the-examples).

View File

@ -53,6 +53,6 @@ engine.load("main.qml")
app.exec_()
```
If you'd like further instructions how you can run this code for yourself, please see [here](https://github.com/1mh/pyqt-examples#running-the-examples).
If you'd like further instructions how you can run this code for yourself, please see [here](https://github.com/pyqt/examples#running-the-examples).
Some code in this directory has special license requirements. For more information, please see [`LICENSE.md`](LICENSE.md).

View File

@ -15,4 +15,4 @@ It has a surprising number of features:
* An *About* dialog.
* A warning *Do you want to save before quitting?* if there are unmodified changes.
The full source code is in [`main.py`](main.py). For instructions on how to run it, please see [here](https://github.com/1mh/pyqt-examples#running-the-examples).
The full source code is in [`main.py`](main.py). For instructions on how to run it, please see [here](https://github.com/pyqt/examples#running-the-examples).

View File

@ -38,7 +38,7 @@ Because we didn't create the `QApplication` ourselves, we finally use the follow
appctxt.app.exec_()
To run this example yourself, you need fbs installed as per the instructions [here](https://github.com/1mh/pyqt-examples#running-the-examples). Then, you can do use the following command to run the text editor:
To run this example yourself, you need fbs installed as per the instructions [here](https://github.com/pyqt/examples#running-the-examples). Then, you can do use the following command to run the text editor:
fbs run

View File

@ -18,4 +18,4 @@ As you can see in [`main.py`](main.py), this example uses `QApplication.setStyle
The rest of the code is the same as for the [original version of the text editor](../07%20Qt%20Text%20Editor).
To run this example yourself, please follow the [instructions in the README of this repository](https://github.com/1mh/pyqt-examples#running-the-examples).
To run this example yourself, please follow the [instructions in the README of this repository](https://github.com/pyqt/examples#running-the-examples).

View File

@ -6,4 +6,4 @@ This example application demonstrates how you can use [`QPainter`](https://doc.q
The crucial steps of this example are to [override `mousePressEvent(...)`](main.py#L13-L17) to handle the user's clicks, and [`paintEvent(...)`](main.py#L18-L22) to draw the bullets. See the top of [`main.py`](main.py) for how these features work in detail.
To run this example yourself, please follow [these instructions](https://github.com/1mh/pyqt-examples#running-the-examples).
To run this example yourself, please follow [these instructions](https://github.com/pyqt/examples#running-the-examples).

View File

@ -4,7 +4,7 @@ This example shows how you can use threads to make your PyQt application more re
<p align="center"><img src="../screenshots/pyqt-thread-example.png" alt="PyQt Thread Example"></p>
To run this example, please follow [the instructions in the README of this repository](https://github.com/1mh/pyqt-examples#running-the-examples). Instead of `python main.py`, use `python` to execute one of the scripts described below. Eg. `python 01_single_threaded.py`.
To run this example, please follow [the instructions in the README of this repository](https://github.com/pyqt/examples#running-the-examples). Instead of `python main.py`, use `python` to execute one of the scripts described below. Eg. `python 01_single_threaded.py`.
To demonstrate the utility of threads, this directory contains multiple implementations of the chat client:

View File

@ -20,4 +20,4 @@ The nice thing about the Model/View distinction is that it lets you visualize th
The next example, [PyQt5 QListview](../13%20PyQt5%20QListView), shows another way of using `QListView`.
To run this example yourself, please follow [the instructions in the README of this repository](https://github.com/1mh/pyqt-examples#running-the-examples).
To run this example yourself, please follow [the instructions in the README of this repository](https://github.com/pyqt/examples#running-the-examples).

View File

@ -15,4 +15,4 @@ view.show()
This is very similar to the [previous example](../12%20QTreeView%20example%20in%20Python), where we displayed a tree view of files. The reason for this similarity is that both examples use Qt's Model/View framework. As an exercise for yourself, you might want to try using `QListView` instead of `QTreeView` in the previous example.
To run this example, please follow [the instructions in the README of this repository](https://github.com/1mh/pyqt-examples#running-the-examples).
To run this example, please follow [the instructions in the README of this repository](https://github.com/pyqt/examples#running-the-examples).

View File

@ -49,4 +49,4 @@ Once we have this model, we can instantiate it, connect it to a `QTableView` and
view.setModel(model)
view.show()
The full code is in [`main.py`](main.py). For instructions how to run it, please see [the instructions in the README of this repository](https://github.com/1mh/pyqt-examples#running-the-examples).
The full code is in [`main.py`](main.py). For instructions how to run it, please see [the instructions in the README of this repository](https://github.com/pyqt/examples#running-the-examples).

View File

@ -35,6 +35,6 @@ view.show()
As in [previous examples](../12%20QTreeView%20example%20in%20Python), this uses Qt's Model/View framework to separate the two concerns of obtaining and displaying the data: We use `model` to load the database, and `view` to display it.
To run this example yourself, first follow [these instructions](https://github.com/1mh/pyqt-examples#running-the-examples). Then invoke `python initdb.py` to initialize the database. After that, you can execute `python main.py` to start the sample application.
To run this example yourself, first follow [these instructions](https://github.com/pyqt/examples#running-the-examples). Then invoke `python initdb.py` to initialize the database. After that, you can execute `python main.py` to start the sample application.
While we use SQLite here, you can easily use other database systems as well. For instance, you could use PostgreSQL via the [psycopg2](http://initd.org/psycopg/) library.