Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7060185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:19:20+00:00 2026-05-28T04:19:20+00:00

Context: Windows7, optionally MinGW I’m thinking of writing a Tk interface for Lhogho .

  • 0

Context: Windows7, optionally MinGW

I’m thinking of writing a Tk interface for Lhogho. Short of reading the source of Tkinter, how does one write that kind of a wrapper? It’s been done for C++, Perl, Python, Tcl and others.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T04:19:20+00:00Added an answer on May 28, 2026 at 4:19 am

    It depends on how close you want the mapping to be.

    The trivial way is to embed a Tcl interpreter and just call Tcl_Eval() or one of the other functions of that family with the right Tcl code as strings, thats pretty easy to do when you can link C libraries or DLLs.

    Once you have that, you can start to make your interface more natural, and for example provide mappings from your languages datastructures to Tcl/Tk internals (Tcl_Obj*), mostly for performance, or to add appropriate wrappers to make the bindings more natural for your language. The main problem usually is to get the event loop working properly with your language.

    Have a look at perls tcl::tk module or pythons Tkinter for an example of this.

    See:
    http://wiki.tcl.tk/13208

    A different way to do it was done by PerlTk, which tried to NOT embed a full Tcl interpreter. Works but is much harder to do, as Tk uses a significant amount of Tcl code for the not performance critical parts like default binding scripts etc.

    Some examples of embedding Tcl/Tk and discussions can be found at:
    http://wiki.tcl.tk/2074

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Context: Windows7, VBScript, ADODB and ADOX. I have written some VBScript code which creates
How would one go about adding a submenu item to the windows explorer context
Context: II7 on Windows7. Joomla! 1.5 At present I have the incoming traffic entire
Context: Windows7 64bit, ActiveDirectory, Windows Server 2003 I'm trying to get the code given
Context We have a SharePoint site set up on a Windows Server 2008 VM
Context Language: C# Platform Version: Microsoft .Net Framework 4.0 Operating System: Windows 7 Professional
As the context menu for the desktop and explorer windows is disabled, I wanted
I am trying to invoke an ANT target from Windows (right-click) file context menu.
What's the difference between System.Drawing.Point and the System.Windows.Point ? In what context should which
Context: There's an application where you draw things on canvas. Where user clicks there's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.