Comments (8)
Thanks for bringing this up,
The reasons for the current limited support for Mac - I originally just made the widget for personal use in a windows desktop app and I don't have any Mac devices to test it on
I really appreciate you taking the time to write a fix, couple of questions though,
Does your code fix all the scrolling issues for you or is there more work to be done?
Also, If it's not too much trouble, would you happen to know how I might make Copy etc work on a touch pad, does the touchpad_events()
function receive an event after long pressing on touch screen and if so what does the object look like internally? Perhaps I can use a popup menu to allow the functionality?
Thanks for your help and testing
from tksheet.
O and lastly sorry, if possible would you be able to test if .bind("<Mod1-
or .bind("<Command-
in addition to .bind("<Control-
fixes the mac cmd key issues on a mac desktop device?
from tksheet.
Re,
So I have just tested it on Windows:
It's fully working from the MouseWheel: Wheel Scrolling activates Vertical scrolling and Shift key pressed + Wheel Scrolling activate Horizontal scrolling
From the TouchPad, only the Vertical scrolling works, event with Shift pressed Horizontal scrolling doesn't work, but it's not a code issue because I even don't receive the event.
To Try On Windows: Bind to self.bind("<Shift-MouseWheel>", self.shift_mousewheel)
to see if the binding receives the event.
Edit: On my mac, the refresh of the column header is not activated when scrolling horizontally, didn't check if it's the same on Windows. But it's a minor issue, it's refreshed with a click on the sheet
Also, If it's not too much trouble, would you happen to know how I might make Copy etc work on a touch pad, does the >
touchpad_events()
function receive an event after long pressing on touch screen and if so what does the object look
like internally? Perhaps I can use a popup menu to allow the functionality?
Oups, sorry touchpad_events()
is a bad name should be just mousewheel(self, event)
.
From what I know, there is no generic touchpad event, click, pressure and release, are just translated to basic Button events.
https://stackoverflow.com/questions/32289175/list-of-all-tkinter-events
from tksheet.
Re,
I confirm self.bind("<Command-
works.
So you it should be nice to bind depending on the OS:
https://stackoverflow.com/questions/110362/how-can-i-find-the-current-os-in-python
from tksheet.
Thanks for your help, I will let you know when I have made the updates
from tksheet.
@PatLechevallier I think I have made all the changes except for the touch pad horizontal scroll which I'll have to continue to work on, your code worked well thank you
also column headers refreshes as well with horizontal scroll
Version 4.9.2
- Add mac OS command c, x, v, z bindings
- Make shift - mousewheel horizontal scroll
from tksheet.
Hi,
tksheet/tksheet/_tksheet_main_table.py
Lines 2208 to 2217 in 2c20286
Sorry, you missed the or event.delta == -1:
and or event.delta == 1:
for the vertical Scroll on Mac
Beside this, it works well! You can close this ticket after the little fix.
Thank You very much!
from tksheet.
Woops, should be fixed in 4.9.3
from tksheet.
Related Issues (20)
- Currently selected cell rows in sheet vs in data HOT 2
- on Rpi5, OS debian bookworm, tksheet's sheet defined col-w & row-h of 10x16 cells size has slow/lagging mouse's cursor movement HOT 12
- How to fix the maximum size of characters in tksheet ceels HOT 6
- The tabel font does not change. HOT 1
- How to Check if a Check Box is checked in tksheet 7 HOT 1
- How to accept user input even if "enter" is not pressed HOT 4
- Looking to customize scrollbar and scrollbar frame bg HOT 2
- Don't work keyboard UP arrow when navigating through the table of tksheet HOT 1
- Multiple issues with Toggle Select Mode
- Partial Horizontal Scrolling HOT 2
- Rows sorting? HOT 2
- Cell Selection Persistence HOT 2
- Keypad enter button ignored HOT 2
- Quotes multiplies when i copy text from cell with ctrl+c or popup menu. HOT 2
- Editing out of bounds when changing sheets HOT 2
- Is there a way to set copy and paste bindings on cyrillic layout? HOT 7
- Issues with auto_resize_row_index HOT 1
- Column header data not made when creating new columns HOT 2
- KeyError when binding a function (which selects a row) to "cell_select" HOT 7
- Resizing columns automatically to fit the frame if they would be smaller in total than the available space HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tksheet.