8000 TextBox: Added set_val method for convenient scripted setting and updating by smithsp · Pull Request #15 · fariza/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

TextBox: Added set_val method for convenient scripted setting and updating #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 21 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
9babee9
Added a text entry widget, that allows usere to register to be notifi…
HastingsGreer Oct 27, 2015
da9b536
resolved merge conflict in CHANGELOG
HastingsGreer Jan 25, 2016
d44d6dd
Added description of textbox widget and example
HastingsGreer Oct 31, 2015
8ba2bdf
Added a text box example: evaluates any string inputs as y(x).
HastingsGreer Oct 31, 2015
83bc3e1
Whitespace adjustments for PEP8 compliance
HastingsGreer Oct 31, 2015
fd5a82b
Removed a newline that was accidentally commited
HastingsGreer Oct 31, 2015
0f79535
removed w accidentally added to the first line
HastingsGreer Oct 31, 2015
d5c28b8
fixed PEP8 formatting
HastingsGreer Oct 31, 2015
c62ed64
Fixed formatting of textbox widget entry in whats_new.rst
HastingsGreer Oct 31, 2015
10d0bbe
formatting changes for Pep8 compliance
HastingsGreer Nov 3, 2015
97df247
removed "time the" from end of document, added last commit by mistake
HastingsGreer Nov 3, 2015
6818f00
refactored "start typing" and "stop typing" into their own functions …
HastingsGreer Jan 20, 2016
403407e
fixed typos from last commit
HastingsGreer Jan 20, 2016
5090f15
made textbox lose focus when window is resized: this prevents cursor …
HastingsGreer Jan 20, 2016
36d8205
added adjustable padding between label and text box
HastingsGreer Jan 20, 2016
e5059c5
removed trailing whitespace
HastingsGreer Jan 25, 2016
03b767c
enabled moving the cursor by clicking
HastingsGreer Feb 13, 2016
76dc565
Document feature: caret can be moved by clicking
HastingsGreer Feb 26, 2016
2793d3a
[Widget/Text] Dont validate the input when clicking outside of the wi…
Nodraak Aug 27, 2016
a11e0fb
TextBox: Added set_val method for convenient scripted setting and upd…
smithsp Jun 17, 2016
257b776
set_axis_bgcolor -> set_facecolor per request of @tacaswell
smithsp Aug 29, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
made textbox lose focus when window is resized: this prevents cursor …
…and text from getting misaligned
  • Loading branch information
HastingsGreer authored and fariza committed Aug 28, 2016
commit 5090f153b93652bf72ffe48e93d6b8dc6d09a30f
6 changes: 5 additions & 1 deletion lib/matplotlib/widgets.py
45FC
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,7 @@ def __init__(self, ax, label, initial='',
self.connect_event('button_release_event', self._release)
self.connect_event('motion_notify_event', self._motion)
self.connect_event('key_press_event', self._keypress)
self.connect_event('resize_event', self._resize)
ax.set_navigate(False)
ax.set_axis_bgcolor(color)
ax.set_xticks([])
Expand Down Expand Up @@ -849,7 +850,10 @@ def _click(self, event):
event.canvas.grab_mouse(self.ax)
if not(self.capturekeystrokes):
self.begin_typing(event.x)


def _resize(self, event):
self.stop_typing()

def _motion(self, event):
if self.ignore(event):
return
Expand Down
0