The following code (used in the book too):
Works as expected in Windows and pops up the blank window. No surprise. On the RPi though it does nothing. No window pops up. A blank prompt after the RESTART line and that's it. No surprise then that all the other coding examples in the book involving windows popping up in the later parts of the chapter fail to produce windows too, such as the more detailed interaction and adding buttons and so on.
Code: Select all
from tkinter import * window = Tk()
I thought to double check if the Tkinter library was installed via "sudo apt-get install python-tk" and the same for python3-tk and get the reply that it is already the newest version. I suspected that'd be fine as no error about non-existent libraries appeared either.
Any ideas to save my friend pulling their hair out? Obviously missing something here and it's probably something simple, knowing how these things go.