-
Notifications
You must be signed in to change notification settings - Fork 0
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
How to switch Deck and Card area #34
Comments
OK, I confirmed the issue, and I think this is a bug in the That doesn't change my assumption that this is a bug in the library, as it should work with ScrollView too, but you need to be careful about what you changed from the original. I'll investigate this further. |
Okay "the side" does matter because this issue occurs only when the ScrollView (the parent of the board) receives a touch event before the decks. (Widgets added to a layout later will receive touch events earlier) The real solution should be to fix the ScrollView, but that would require quite a bit of work. If you are not willing to do that, here's a hacky workaround. BoxLayout:
BoxLayout:
Deck:
board: board
text: 'numbers'
on_touch_down:
touch = args[1]
touch.ud.pop(board_sv._get_uid('svavoid')) if self.collide_point(*touch.opos) else None
Deck:
board: board
text: 'letters'
on_touch_down:
touch = args[1]
touch.ud.pop(board_sv._get_uid('svavoid')) if self.collide_point(*touch.opos) else None
Widget:
size_hint_x: .1
ScrollView:
id: board_sv
GridLayout:
id: board Once a ScrollView sets a Another workaround is to use GridLayout and set its GridLayout:
orientation: 'rl-tb'
rows: 1
ScrollView:
id: board_sv
GridLayout:
id: board
Widget:
size_hint_x: .1
BoxLayout:
Deck:
board: board
text: 'numbers'
Deck:
board: board
text: 'letters' |
@LukasSliacky no reply? |
Wow, really thank you for your support. In my case are both recommended solutions acceptable. |
Sorry for my post, i think it isn't bug, but i don't know how to modify your example
using_other_widget_as_an_emitter.py
to switch sides of application with keep functionality.In your example you have Decks on the right side and Cards on the left side. I need to switch it vice versa: I need Decks on the left Side and Cards on the right side
When i tried it only move block in
kv
code, UI looks fine, but draggable functionality isn't works and dragged card will take back to the Deck. Probably, I have problem with some ID's or something similar but on with my skill level cann't modify your example.Please, can you help me with this modification?
Thank you
The text was updated successfully, but these errors were encountered: