height not working python (3.4)
Question: I'm making my first program with tkinter and height will not work but width is
working.  
here is my code:

    
    
    from tkinter import *
    from random import randint
    def roll():
        text.delete(0.0, END)
        text.insert(END, str(randint(1, 6)))
    window = Tk()
    text = Text(window, width=1 height=1)
    button = ButtonA(window, text='Press to roll!'), command=roll)
    text.pack()
    buttonA.pack()
    


Answer: Your program works with a few edits. For a 1 char text, width one is okay.

    
    
    from tkinter import *
    from random import randint
    def roll():
        text.delete("1.0", END)  # indent inserted by first editor
        text.insert(END, str(randint(1, 6)))  # ditto
    # but first editor mistakenly added indents below.
    window = Tk()
    text = Text(window, width=1, height=1)  # insert ','
    button = Button(window, text='Press to roll!', command=roll)  # delete 'A', ')'
    text.pack()
    button.pack()  # replace 'ButtonA' with 'button'
    

That said, a Label would be more appropriate for read-only display. It also
sizes itself automatically.

    
    
    from tkinter import *
    from random import randint
    def roll():
        out['text'] = str(randint(1, 6))
    window = Tk()
    out = Label(window, text = ' ')
    button = Button(window, text='Press to roll!', command=roll)
    button.pack()
    out.pack()
    

