()
| 107 | btn.pack() |
| 108 | |
| 109 | def calculate(): |
| 110 | infix_str = infix.get() |
| 111 | tempinfix_str = parse_infix(infix_str) |
| 112 | postfix_str = convert_to_postfix(tempinfix_str) |
| 113 | result_str = calculate_postfix(postfix_str) |
| 114 | tempinfix.delete(0, END) |
| 115 | tempinfix.insert(0, tempinfix_str) |
| 116 | postfix.delete(0, END) |
| 117 | postfix.insert(0, postfix_str) |
| 118 | result.delete(0, END) |
| 119 | result.insert(0, result_str) |
| 120 | |
| 121 | btn["command"] = calculate |
| 122 | root.mainloop() |
nothing calls this directly
no test coverage detected