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

Messageboxes and dialogs #38

Open
7 of 26 tasks
rdbende opened this issue Dec 21, 2021 · 15 comments · Fixed by #89
Open
7 of 26 tasks

Messageboxes and dialogs #38

rdbende opened this issue Dec 21, 2021 · 15 comments · Fixed by #89
Labels
Milestone

Comments

@rdbende
Copy link
Member

rdbende commented Dec 21, 2021

TODO:

  • Messageboxes
  • Filedialogs
    • Open file
    • Save file
    • Select directory
  • Color selection
  • Input dialog
    • String
    • Number
    • Slider
  • Font chooser
    • Native dialogs on Windows and mac
    • Custom font chooser on X11
  • Calendar dialog
  • About dialog
  • Task dialog
  • Progress dialog
  • Notifications
  • Credentials dialog
  • Print dialog
  • Custom dialog API

Implementation:

  • Use KDialog if available
  • Use Zenity if available
  • Use notify-send if available
@rdbende rdbende changed the title Make messageboxes and dialogs Feature: Messageboxes and dialogs Mar 11, 2022
@rdbende rdbende added the enhancement New feature or request label Mar 11, 2022
@rdbende rdbende added the Area: widgets Widget related stuff label May 16, 2022
@rdbende rdbende changed the title Feature: Messageboxes and dialogs Messageboxes and dialogs May 16, 2022
@rdbende rdbende added this to To do in Widget palette May 16, 2022
@rdbende rdbende added this to the 0.2.0 milestone Jul 3, 2022
@tukaan tukaan deleted a comment from sumeshir26 Jul 6, 2022
@tukaan tukaan deleted a comment from Moosems Jul 6, 2022
@rdbende rdbende moved this from To do to In progress in Widget palette Jul 6, 2022
@rdbende rdbende mentioned this issue Jul 6, 2022
@Moosems
Copy link
Collaborator

Moosems commented Jul 6, 2022

Can we try and add the Mac printer dialog? It would also be nice to have a built-in way to make dialogs

@rdbende
Copy link
Member Author

rdbende commented Jul 6, 2022

It would also be nice to have a built-in way to make dialogs

Yup, it isn't in the TODO, but actually I've implemented it.

Can we try and add the Mac printer dialog?

Definitely, amazing good idea! I'll have to do some research, because it's probably not that straightforward, but it would be nice to have a print dialog (not only on Mac :)

@Moosems
Copy link
Collaborator

Moosems commented Jul 6, 2022

Definitely, amazing good idea! I'll have to do some research, because it's probably not that straightforward, but it would be nice to have a print dialog (not only on Mac :)

Yeah its not built into tk and haven't been able to find anything yet but that would be an amazing add

@rdbende
Copy link
Member Author

rdbende commented Jul 6, 2022

https://stackoverflow.com/questions/72370788/bring-up-macos-print-file-dialog

@Moosems Here are your requested links:

I haven't read through them, just found the files, but it looks like there is indeed going to be some printing stuff in Tk8.7

https://wiki.tcl-lang.org/page/Tcl/Tk+Printing+Support

@Moosems
Copy link
Collaborator

Moosems commented Jul 6, 2022

That's awesome! You know that TRCK on stackoverflow is me right?

@rdbende
Copy link
Member Author

rdbende commented Jul 6, 2022

Yes :)

@Moosems
Copy link
Collaborator

Moosems commented Jul 6, 2022

Haha I just thought it was kinda funny how you had pulled up my question

@rdbende rdbende pinned this issue Jul 7, 2022
@rdbende rdbende added good first issue Good for newcomers and removed enhancement New feature or request good first issue Good for newcomers labels Jul 7, 2022
@Moosems
Copy link
Collaborator

Moosems commented Aug 10, 2022

How can I call messageboxes?

@rdbende
Copy link
Member Author

rdbende commented Aug 10, 2022

In theory you could do this:

from tukaan.dialogs import FileDialog


dir = FileDialog.get_directory()

file_to_open = FileDialog.get_open_filenames()
file_to_save = FileDialog.get_save_filenames()


with FileDialog.get_open_file() as file:
    print(file.read())

with FileDialog.get_save_file() as file:
    file.write("asdf")

but something is broken, so you can't ATM.

Edit: Yea, these aren't messageboxes, but only filedialogs are implemented currently.

@Moosems
Copy link
Collaborator

Moosems commented Aug 10, 2022

Oh ok. How can I help get them working?

@rdbende
Copy link
Member Author

rdbende commented Aug 10, 2022

At the moment I don't you could help, because I don't know what causes the error either. But if you can figure it out, then...

@Moosems
Copy link
Collaborator

Moosems commented Aug 10, 2022

Ok. Where is the code for it located?

@Moosems
Copy link
Collaborator

Moosems commented Aug 10, 2022

Thanks

@rdbende rdbende removed this from the 0.2.0 milestone Nov 2, 2022
@rdbende rdbende modified the milestones: 1.0.0, 0.2.0 Nov 2, 2022
Widget palette automation moved this from In progress to Done Nov 26, 2022
@rdbende rdbende reopened this Nov 26, 2022
Widget palette automation moved this from Done to In progress Nov 26, 2022
@rdbende
Copy link
Member Author

rdbende commented Nov 27, 2022

Windows toast notifications: https://github.com/mohabouje/WinToast

@rdbende rdbende unpinned this issue May 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Widget palette
In progress
Status: In Progress
Development

Successfully merging a pull request may close this issue.

2 participants