Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import matplotlib.pyplot as plt
- from matplotlib.widgets import TextBox
- axbox = plt.axes([0.4, 0.5, 0.2, 0.075])
- initial_text = "Change me"
- text_box = TextBox(axbox, '', initial=initial_text)
- text_box.position_cursor(len(initial_text)) # RuntimeError!
- plt.show()
- #text_box.position_cursor(len(initial_text))
- RuntimeError: Cannot get window extent w/o renderer
Add Comment
Please, Sign In to add comment