diff --git a/Chapter03/calendar_app.py b/Chapter03/calendar_app.py index 837ff06..1a1540a 100644 --- a/Chapter03/calendar_app.py +++ b/Chapter03/calendar_app.py @@ -146,6 +146,11 @@ def clear_form(self): self.event_detail.setPlainText('') def populate_list(self): + # As reported by github user eramey16, we need the following line + # to unselect list items since the selected index may not exist + # in the new list. This line is not in the book code. + self.event_list.setCurrentRow(-1) + self.event_list.clear() self.clear_form() date = self.calendar.selectedDate() diff --git a/Chapter17/QTicTacToe/README.rst b/Chapter17/QTicTacToe/README.rst index c2d8ef4..c111eed 100644 --- a/Chapter17/QTicTacToe/README.rst +++ b/Chapter17/QTicTacToe/README.rst @@ -14,7 +14,7 @@ This is the classic game of **tic-tac-toe**, also known as noughts and crosses. Usage ===== -Simply run `python qtictactoe.py` from within the project folder. +Simply run `python run.py` from within the project folder. - Players take turns clicking the mouse on the playing field to mark squares. - When one player gets 3 in a row, they win. diff --git a/README.md b/README.md index 1f2a6f9..02d948b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ + + + # Mastering GUI Programming with Python Mastering GUI Programming with Python @@ -61,6 +64,18 @@ We also provide a PDF file that has color images of the screenshots/diagrams use Click on the following link to see the Code in Action: [Click here to view the videos](http://bit.ly/2M3QVrl) +## Errata + +Page 77: The section of code that describes the "on_category_change" method: +* Line 3 reads, "dialog = CategoryWindow()", it should read, "self.dialog = CategoryWindow()" +* Line 4 reads, "dialog.submitted.connect(self.add_category)", it should read, "self.dialog.submitted.connect(self.add_category)" + +Page 418: +* Here is the ```=__init__()``` method _should be_ Here is the ```__init__()``` method + +Page 419: +* The ```mousePressEvent())``` method is called _should be_ The ```mousePressEvent()``` method is called + ### Related products * Qt5 Python GUI Programming Cookbook [[Packt]](https://www.packtpub.com/application-development/qt5-python-gui-programming-cookbook?utm_source=github&utm_medium=repository&utm_campaign=) [[Amazon]](https://www.amazon.com/dp/B079S4Q9T2) @@ -81,3 +96,7 @@ is a data analyst and software developer who has been solving problems with Pyth [Click here](https://docs.google.com/forms/d/e/1FAIpQLSdy7dATC6QmEL81FIUuymZ0Wy9vH1jHkvpY57OiMeKGqib_Ow/viewform) if you have any feedback or suggestions. +### Download a free PDF + + If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.
+

https://packt.link/free-ebook/9781789612905

\ No newline at end of file