Giter VIP home page Giter VIP logo

Comments (7)

insolor avatar insolor commented on May 25, 2024

Why is it needed to be integrated into tukaan itself? Just run playsound asynchronously (with the second parameter set to False, as suggested in the playsound's readme), this way it will not block the main thread.

from tukaan.

not-nef avatar not-nef commented on May 25, 2024

Well i just thought it would be useful

from tukaan.

insolor avatar insolor commented on May 25, 2024

Maybe, if you specify what kind of integration do you mean, it would be clearer. From my perspective, it is easy to use playsound as is, as a separate package, without any additional integration.

As an example, what needs some kind of integration is pystray, because there is no clear and obvious way how to add a tray icon when you use tkinter or tukaan. There is some workaround on StackOverflow, but as far as I remember I had some problems with this approach on Linux.

from tukaan.

rdbende avatar rdbende commented on May 25, 2024

Well, I'm not going to integrate the playsound module, for several reasons.

  1. playsound has only one function, which isn't a big deal to import from there instead of Tukaan
  2. playsound advertises itself as no dependencies required, which is not true. On Linux you need the PyGObject package, which is a huge dependency
  3. playsound is dumb. It has only one function, which doesn't allow you to stop the music, edit it, or do anything useful with it.
  4. I have a MUCH better idea for sound support in Tukaan

from tukaan.

rdbende avatar rdbende commented on May 25, 2024

@insolor I'm not sure in Pystray either.
It's a pain to get it working with Tkinter, since both have their own mainloops that block each other.

I might just implement the tk systray feature that's in Tk 8.7, although it would be nice to find a way to make Tukaan and Pystray work well together.

from tukaan.

sumeshir26 avatar sumeshir26 commented on May 25, 2024

But mac dosent have Tcl 8.7 unless you use annaconda, right?

from tukaan.

rdbende avatar rdbende commented on May 25, 2024

I won't add support for Tcl/Tk 8.7 until they release the stable version, so I don't think that's a problem.

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.