Skip to content

Commit 1252abe

Browse files
committed
Update links to https://www.learnpyqt.com
1 parent b99eb33 commit 1252abe

38 files changed

+109
-118
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,11 @@ The application window should appear.
4444
## Want to build your own apps?
4545

4646
> If you think these apps are neat and want to learn more about
47-
PyQt in general, [take a look at my ebook & online course
48-
"Create Simple GUI Applications"](https://martinfitzpatrick.name/create-simple-gui-applications)
49-
which covers everything you need to know to start building your own applications with PyQt.
47+
PyQt in general, take a look at [my free online tutorials](https://www.learnpyqt.com)
48+
which cover everything you need to know to start building your own applications with PyQt.
5049

51-
You can also find more PyQt articles, tutorials and projects
52-
[on my website](http://martinfitzpatrick.name/tag/pyqt).
50+
You can also find write-ups about these apps
51+
[here](http://www.learnpyqt.com/apps).
5352

5453
## License
5554

browser/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ browsing experience with the usual controls, as well as saving and loading HTML.
66

77
![Browser](screenshot-browser.jpg)
88

9-
> If you think this example app is neat and want to learn more about
10-
PyQt in general, [take a look at my ebook & online course
11-
"Create Simple GUI Applications"](https://martinfitzpatrick.name/create-simple-gui-applications)
12-
which covers everything you need to know to start building your own applications with PyQt.
9+
> If you think this app is neat and want to learn more about
10+
PyQt in general, take a look at my [free PyQt tutorials](https://www.learnpyqt.com)
11+
which cover everything you need to know to start building your own applications with PyQt.
1312

1413
## Other licenses
1514

browser/browser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def save_file(self):
159159
"All files (*.*)")
160160

161161
if filename:
162-
html = self.browser.page().mainFrame().toHtml()
162+
html = self.browser.page().toHtml()
163163
with open(filename, 'w') as f:
164164
f.write(html)
165165

browser/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
PyQt5>=5.6
2+
sip

browser_tabbed/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ coincidental.
77

88
![Browser tabbed](screenshot-browser-tabbed.jpg)
99

10-
> If you think this example app is neat and want to learn more about
11-
PyQt in general, [take a look at my ebook & online course
12-
"Create Simple GUI Applications"](https://martinfitzpatrick.name/create-simple-gui-applications)
13-
which covers everything you need to know to start building your own applications with PyQt.
10+
> If you think this app is neat and want to learn more about
11+
PyQt in general, take a look at my [free PyQt tutorials](https://www.learnpyqt.com)
12+
which cover everything you need to know to start building your own applications with PyQt.
1413

1514
## Code notes
1615

browser_tabbed/browser_tabbed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def save_file(self):
208208
"All files (*.*)")
209209

210210
if filename:
211-
html = self.tabs.currentWidget().page().mainFrame().toHtml()
211+
html = self.tabs.currentWidget().page().toHtml()
212212
with open(filename, 'w') as f:
213213
f.write(html.encode('utf8'))
214214

browser_tabbed/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
PyQt5>=5.6
2+
sip

calculator/calculator.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,15 @@ def equals(self):
9191
if self.current_op:
9292
self.last_operation = self.stack[-1], self.current_op
9393

94-
self.stack = [self.current_op(*self.stack)]
95-
self.current_op = None
96-
self.state = READY
97-
self.display()
94+
try:
95+
self.stack = [self.current_op(*self.stack)]
96+
except Exception:
97+
self.lcdNumber.display('Err')
98+
self.stack = [0]
99+
else:
100+
self.current_op = None
101+
self.state = READY
102+
self.display()
98103

99104

100105
if __name__ == '__main__':

calculator/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
PyQt5>=5.6
2+
sip

camera/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ them.
77

88
![Camera](screenshot-camera.jpg)
99

10-
> If you think this example app is neat and want to learn more about
11-
PyQt in general, [take a look at my ebook & online course
12-
"Create Simple GUI Applications"](https://martinfitzpatrick.name/create-simple-gui-applications)
13-
which covers everything you need to know to start building your own applications with PyQt.
10+
> If you think this app is neat and want to learn more about
11+
PyQt in general, take a look at my [free PyQt tutorials](https://www.learnpyqt.com)
12+
which cover everything you need to know to start building your own applications with PyQt.
1413

1514
## Other licenses
1615

0 commit comments

Comments
 (0)