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

Remove the Python text box at the right-hand side #146

Merged
merged 1 commit into from
Nov 6, 2022

Conversation

yungyuc
Copy link
Member

@yungyuc yungyuc commented Nov 6, 2022

Change all applications to set the Python command line instead.

Ref #104

Change all applications to set the Python command line instead.
@yungyuc yungyuc added the enhancement New feature or request label Nov 6, 2022
@yungyuc yungyuc self-assigned this Nov 6, 2022
@@ -9,7 +9,6 @@ set(MODMESH_VIEW_HEADERS
${CMAKE_CURRENT_SOURCE_DIR}/RAxisMark.hpp
${CMAKE_CURRENT_SOURCE_DIR}/RMainWindow.hpp
${CMAKE_CURRENT_SOURCE_DIR}/RPythonConsoleDockWidget.hpp
${CMAKE_CURRENT_SOURCE_DIR}/RPythonText.hpp
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bye bye, RPythonText.

m_pycon = new RPythonConsoleDockWidget(QString("Console"), this);
m_pycon->setAllowedAreas(Qt::BottomDockWidgetArea | Qt::TopDockWidgetArea);
m_pycon->setAllowedAreas(Qt::AllDockWidgetAreas);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allow narrow command line dock on left and right.

"command",
[](wrapped_type const & self)
{
return self.command().toStdString();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Later when we have sufficiently many such wrappers, we should add a caster for QString.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe open an issue, otherwise it's easy to forget lol

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds like a good idea. After filing one could you tag it here?

# Need to hold the win object to keep PySide alive.
win, svr = mm.app.bad_euler1d.run(animate=True, interval=10)
""".lstrip()
cmd = "win, svr = mm.app.bad_euler1d.run(animate=True, interval=10)"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pycon takes a one liner. It does not yet have a check in the engine so that we can fine-tune the implementation.

@yungyuc
Copy link
Member Author

yungyuc commented Nov 6, 2022

@tigercosmos I am merging and would like you have your comments.

@yungyuc yungyuc marked this pull request as ready for review November 6, 2022 02:26
@yungyuc yungyuc merged commit aa5bffb into solvcon:master Nov 6, 2022
@yungyuc yungyuc deleted the feature/remove-pytext branch November 6, 2022 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants