Skip to content

Commit

Permalink
Update repository URL
Browse files Browse the repository at this point in the history
  • Loading branch information
mherrmann committed Jun 28, 2019
1 parent 85ba327 commit 3091f1a
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/01 PyQt QLabel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion src/02 PyQt Widgets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion src/03 QVBoxLayout PyQt5/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
2 changes: 1 addition & 1 deletion src/04 PyQt Signals and Slots/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
2 changes: 1 addition & 1 deletion src/05 Qt Designer Python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
2 changes: 1 addition & 1 deletion src/06 QML Python example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
2 changes: 1 addition & 1 deletion src/07 Qt Text Editor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
2 changes: 1 addition & 1 deletion src/08 PyQt5 exe/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/09 Qt dark theme/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
2 changes: 1 addition & 1 deletion src/10 QPainter Python example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
2 changes: 1 addition & 1 deletion src/11 PyQt Thread example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion src/12 QTreeView example in Python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
2 changes: 1 addition & 1 deletion src/13 PyQt5 QListView/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
2 changes: 1 addition & 1 deletion src/14 QAbstractTableModel example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
2 changes: 1 addition & 1 deletion src/15 PyQt database example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 3091f1a

Please sign in to comment.