Skip to content
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

Added text boxes to edit the initial conditions in the GUI. #333

Merged
merged 6 commits into from
Mar 9, 2016
Merged
Changes from 1 commit
Commits
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
Fixed the layout issues with the parameter input boxes.
  • Loading branch information
moorepants committed Mar 9, 2016
commit 37d3e38ef69c7490f4c8b0a0bd505278937821ce
10 changes: 6 additions & 4 deletions pydy/viz/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -748,17 +748,19 @@ def display_ipython(self):
if self._system is not None:

self._initial_conditions_container = widgets.Box()
self._initial_conditions_container.padding = "10px"
self._initial_conditions_text_widgets = OrderedDict()
self._fill_initial_conditions_widgets()
self._initial_conditions_container.children = \
((widgets.HTML('<strong>Initial Conditions</strong>'), ) +
title = widgets.HTML('<h4 style="margin-left: 5ex;">Initial Conditions</h4>')
self._initial_conditions_container.children = ((title, ) +
tuple(v for v in self._initial_conditions_text_widgets.values()))

self._constants_container = widgets.Box()
self._constants_container.padding = "20px"
self._constants_text_widgets = OrderedDict()
self._fill_constants_widgets()
self._constants_container.children = \
((widgets.HTML('<strong>Constants</strong>'), ) +
title = widgets.HTML('<h4 style="margin-left: 5ex;">Constants</h4>')
self._constants_container.children = ((title, ) +
tuple(v for v in self._constants_text_widgets.values()))

self._initialize_rerun_button()
Expand Down