-
-
Notifications
You must be signed in to change notification settings - Fork 685
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
Implement DateInput and TimeInput for Cocoa, GTK and iOS #1939
Comments
After further looking I did realize that there is already the start of a datepicker implementation, just not documented in on the readthedocs yet. |
DatePicker and TimePicker both exist in the Toga API; however, they're only implemented on Windows and Android. The lack of documentation is definitely an oversight; and we'd definitely like to fill this out with GTK, iOS, Cocoa and Web implementations. |
I can see about the GTK implementation. My question there is since a custom widget may need to be made, is there anything with GTK already that would be appropriate to take inspiration from to create it? Also for web I can look into it as well. If shoelace is still the wanted framework it looks like there has been a discussion about an implementation of this so I can go from there for an implementation maybe. |
Actually, after looking at it a popover would probably be the best option for a date and time picker for GTK |
Adding error that happens when you try to use DatePicker on GTK for search seo.
|
This error message will be improved in #1992. And in the next version of Toga:
|
What is the problem or limitation you are having?
Currently there is no implementation for showing a calendar. It would be useful for at least 2 reasons and probably more.
1st reason would be allowing the user to select a specific date for the program to use.
2nd reason would be allowing the program to show a custom calender that the user could fill with their own events that may be useful inside a specific app instead of in the built in calender. An example would be a finance app that allows the user to specify when bills or subscriptions get billed easier.
Describe the solution you'd like
For Android there is 2 different widgets that can be used for each reason. For displaying a calender with events I believe that the CalenderView is the option that would be wanted. For selecting a date there is a date picker implementation already.
For Gtk there is only one widget for this. The Gtk.Calender allows for displaying a calendar and has the ability to add custom events as well as the ability to get the selected date. For a date picker implementation a custom window may need to be made similar to the error dialogs and such.
Describe alternatives you've considered
Not having a calender widget and having the user manually type in dates and making a custom view for dates and such.
Additional context
No response
The text was updated successfully, but these errors were encountered: