Skip to content
This repository was archived by the owner on Sep 28, 2026. It is now read-only.

Port View Switcher to python - #109

Merged
theCapypara merged 2 commits into
workbenchdev:mainfrom
imhemish:viewswitcher-python
Feb 29, 2024
Merged

theCapypara merged 2 commits into
workbenchdev:mainfrom
imhemish:viewswitcher-python

Conversation

@imhemish

Copy link
Copy Markdown
Contributor

It's my first time contributing to Workbench. Hope it's all good! Waiting for listening to any more suggestions or changes!

@rolandlo

Copy link
Copy Markdown
Contributor

Compare this PR and comments.
Also see Language support table for other PRs.

@sonnyp

sonnyp commented Feb 29, 2024 •

Copy link
Copy Markdown
Contributor

@imhemish nice to see you here, thank you for contributing

yeah I'm afraid as @rolandlo pointed out this was already work in progress sonnyp/Workbench#726
I'l close this one, and we can move the conversation there.

EDIT: nevermind - I've reopen this one since it is open against the right repo

We are sort of complete now with the Python port so if you want to contribute here are options

  • make new demos
  • improve existing ones
  • contribute to Workbench itself

Here are source of inspirations #3

@sonnyp sonnyp closed this Feb 29, 2024
@sonnyp sonnyp reopened this Feb 29, 2024

@theCapypara theCapypara left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks a lot for your first contribution! Works perfectly & great idea to use get_ancestor


def on_button_clicked(button: Gtk.Button, *_):
notifications_page.props.badge_number -= 1
notification_list.remove(button.get_ancestor(Adw.ActionRow))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

@theCapypara
theCapypara merged commit 6c3c514 into workbenchdev:main Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants