0
Hello. I am trying to create a program of graphical interface using Tkinter(I learned a little while ago) and I wanted the user, when writing in the text input box and pressing the button he printed something. If you type capital B, print "starting bios" and if you don’t write something print "starting OS". Code:
# -*- coding: cp1252 -*-
from Tkinter import *
#função de arranque da VM:
def arranque():
root = Tk()
root.minsize(950, 700)
root.wm_iconbitmap('virtual-pc-1338544131.ico')
root.title("Computador virtual PowerBIT v1.0")
root.configure(background='black')
machine = Label(root, text="Bem vindo à máquina virtual. Prima B para aceder ao BIOS ou ENTER para inciar o SO", fg="white", bg="black").grid(row=0)
e1 = Entry(root, bg = "white", fg = "black" )
e1.grid(row=0, column=1)
botao_de_arranque = Button(root, text="Iniciar", width=6).grid(row = 1, column = 1, )
root.mainloop()
arranque()
I’ll give you a hint, buddy. Use easygui.
– user2692