Code Monkey home page Code Monkey logo

Comments (5)

Clemapfel avatar Clemapfel commented on May 18, 2024 1

Okay thank you, I'm pretty sure usage of Threads.Task here is causing this then. I'll have a PR ready as soon as possible.

Until then you can just use that code snippet instead of main. Thank you for helping out!

from mousetrap.jl.

Clemapfel avatar Clemapfel commented on May 18, 2024

Thank you, could you run the following code and tell me if it still crashes?

using mousetrap
app = Application("issue.test")
connect_signal_activate!(app) do app::Application
    window = Window(app)
    set_child!(window, Label("Test"))
    present!(window)
end
run!(app)

I will also try to reproduce this on my end

from mousetrap.jl.

ericphanson avatar ericphanson commented on May 18, 2024

Thank you, could you run the following code and tell me if it still crashes?

This doesn't crash. No window pops up though. (BTW: I added a close-paren to the line set_child!(window, Label("Test"))

from mousetrap.jl.

Clemapfel avatar Clemapfel commented on May 18, 2024

Yes thank you, I typo'd there, also I forgot to add run!, this is the correct code, I also edited the original message.

using mousetrap
app = Application("issue.test")
connect_signal_activate!(app) do app::Application
    window = Window(app)
    set_child!(window, Label("Test"))
    present!(window)
end
run!(app)

Which should open a window.

Does this still crash for you? I apologize for the typos, I shouldn't be answering issue on my phone.

from mousetrap.jl.

ericphanson avatar ericphanson commented on May 18, 2024

That works! It opens a window and does not crash.
Screen Shot 2023-08-22 at 00 47 53

from mousetrap.jl.

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.