sugarlabs / Pippy

Pippy allows the student to examine, execute, and modify simple Python programs. In addition it is possible to write Python statements to play sounds, calculate expressions, or make simple text based interactive games.
GNU General Public License v2.0
11 stars 34 forks source link

Fix setting focus on empty page #72

Closed tchx84 closed 4 years ago

tchx84 commented 4 years ago

The first time the Activity is opened, there are no pages in the GtkNotebook and therefore there is no widget to set focus to. We need to consider this scenario to avoid errors.

quozl commented 4 years ago

Thanks. Tested.