Skip to content

Bug/cursor and resize#29

Merged
MathisFederico merged 13 commits intofeature/kernelfrom
bug/cursor_and_resize
Nov 14, 2021
Merged

Bug/cursor and resize#29
MathisFederico merged 13 commits intofeature/kernelfrom
bug/cursor_and_resize

Conversation

@vanyle
Copy link
Contributor

@vanyle vanyle commented Nov 13, 2021

This merge request adds 2 main things:

  • The cursor changes to "resize" when hovering over the resize area of a block to make this area easy to locate.
  • Codeblocks have 2 resize areas, one to resize the display and one to resize the source editor

The pylint score is a bit lower because pylint things that the 2 hover function in block.py and codeblock.py are too similar but I don't see an easy way to refactor this.

…a. This makes it easier to locate the resizing area when using the interface.
…f a block independently.

During this process, some duplicated code for setting the size of said panel is removed.
Copy link
Member

@MathisFederico MathisFederico left a comment

Choose a reason for hiding this comment

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

You can reduce duplication by using newly defined functions !
Don't worry if there is a lot of comments and change requests, we will learn to work together step by step !

@MathisFederico MathisFederico linked an issue Nov 13, 2021 that may be closed by this pull request
@vanyle vanyle force-pushed the bug/cursor_and_resize branch from 4059048 to 5e5ea8d Compare November 14, 2021 00:46
vanyle and others added 5 commits November 14, 2021 02:39
…se moves quickly from the resizing area to outside of it.

Also, tied the start of the resizing to the cursor appearance to help with consistency between cursor appearance and if the area is resizable if changes are made.
Refactor execute and update_output using new method get_message
Copy link
Member

@MathisFederico MathisFederico left a comment

Choose a reason for hiding this comment

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

Nice ! I think this can be merged !
It will be re-reviewed when feature/kernel will be merged anyway

message was overriden on last iteration when execution_state is idle.
@MathisFederico MathisFederico merged commit f3b115f into feature/kernel Nov 14, 2021
@MathisFederico MathisFederico deleted the bug/cursor_and_resize branch November 14, 2021 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resizing output of a code block

2 participants