[Tutor] Tkinter: link button to executable

Remco Gerlich scarblac@pino.selwerd.nl
Tue, 3 Oct 2000 12:23:21 +0200


On Tue, Oct 03, 2000 at 12:13:30PM +0200, nicolas baurin wrote:
> The windows appear but when i press the button exe i got error message
> from the system line declaration
> 
> ...: Name Error system
> 
> Idem if i do :from sys import *
> ,followed by: system("c:/wordpad.exe")

system() is in the os module, not the sys module. So use "import os"
and "os.system".

Remco