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

improve/port Tk event handling #3

Open
JeffBezanson opened this issue Nov 30, 2012 · 3 comments
Open

improve/port Tk event handling #3

JeffBezanson opened this issue Nov 30, 2012 · 3 comments

Comments

@JeffBezanson
Copy link
Contributor

extras/tk.jl currently uses an X11-specific hack to handle events. We need to use a more portable method of integrating Tcl/Tk's event loop with our own.

We may need to use Tcl_CreateEventSource, as documented here: http://www.tcl.tk/man/tcl8.4/TclLib/Notifier.htm

This may require adding features like timers to our event loop, which will happen already with the libuv branch.

Issue moved from JuliaLang/julia#1473

@ViralBShah
Copy link
Collaborator

Post the Windows merge, add_fd_handler is no longer available, and we need to get rid of it to be cross-platform in any case.

julia> require("Winston/src/Plot.jl")
in init: add_fd_handler not defined
 in init at /Users/viral/.julia/Tk/src/Tk.jl:51
 in include_from_node1 at util.jl:244
 in reload_path at util.jl:254
 in require at util.jl:223
 in include_from_node1 at util.jl:244
 in reload_path at util.jl:254
 in require at util.jl:223
at /Users/viral/.julia/Tk/src/Tk.jl:260

@timholy
Copy link
Member

timholy commented May 21, 2013

I'm guessing this can be closed now?

@JeffBezanson
Copy link
Contributor Author

No, because we still aren't handling events properly. We are using a timer to poll, which is pretty awful.

ViralBShah pushed a commit that referenced this issue Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants