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

Add set_visibility and show_zoom_buttons #149

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ninerforce
Copy link

feat: Add functionality to toggle visibility of zoom buttons

Response to Issue #147
#147

  • Introduced set_visibility method in CanvasButton to dynamically show or hide buttons by controlling their canvas item states.
  • Added toggle_zoom_buttons method in TkinterMapView to manage the visibility of zoom buttons (+ and -) using the new set_visibility feature.
  • Ensures clean UI manipulation by hiding buttons when not needed, while preserving functionality for future re-enabling.

This update enhances the flexibility of the map widget interface.

feat: Add functionality to toggle visibility of zoom buttons

- Introduced `set_visibility` method in `CanvasButton` to dynamically show or hide buttons by controlling their canvas item states.
- Added `toggle_zoom_buttons` method in `TkinterMapView` to manage the visibility of zoom buttons (`+` and `-`) using the new `set_visibility` feature.
- Ensures clean UI manipulation by hiding buttons when not needed, while preserving functionality for future re-enabling.

This update enhances the flexibility of the map widget interface.
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.

1 participant