Giter VIP home page Giter VIP logo

Comments (15)

Moosems avatar Moosems commented on May 25, 2024

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

from tukaan.

rdbende avatar rdbende commented on May 25, 2024

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 :)

from tukaan.

Moosems avatar Moosems commented on May 25, 2024

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

from tukaan.

rdbende avatar rdbende commented on May 25, 2024

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

from tukaan.

Moosems avatar Moosems commented on May 25, 2024

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

from tukaan.

rdbende avatar rdbende commented on May 25, 2024

Yes :)

from tukaan.

Moosems avatar Moosems commented on May 25, 2024

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

from tukaan.

Moosems avatar Moosems commented on May 25, 2024

How can I call messageboxes?

from tukaan.

rdbende avatar rdbende commented on May 25, 2024

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.

from tukaan.

Moosems avatar Moosems commented on May 25, 2024

Oh ok. How can I help get them working?

from tukaan.

rdbende avatar rdbende commented on May 25, 2024

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...

from tukaan.

Moosems avatar Moosems commented on May 25, 2024

Ok. Where is the code for it located?

from tukaan.

rdbende avatar rdbende commented on May 25, 2024

https://github.com/tukaan/tukaan/blob/424570b7b938cedf4a47e3eeb6cc2f6dcd23fd68/tukaan/dialogs/filedialog.py

from tukaan.

Moosems avatar Moosems commented on May 25, 2024

Thanks

from tukaan.

rdbende avatar rdbende commented on May 25, 2024

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

from tukaan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.