Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Tim Cuthbertson <gfxmonk@gmail.com>
To: caml-list@inria.fr
Subject: [Caml-list] Adding ttk (tile tk) bindings to labltk
Date: Thu, 3 Oct 2013 19:45:12 +1000	[thread overview]
Message-ID: <CAC-LLDicLMG13A_AzJWxEmteJ+qG9ZF9s0ogbhMLhWQV6f8UZQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1328 bytes --]

I've started learning ocaml and TK at the same time, just to make things
fun ;)

I'm using labltk, initially via my OS package (fedora). I've built a
plausible GUI to play around with so far, but then I noticed that there was
no support for the progressbar widget [1], so I thought I'd see if I could
add it.

http://www.tkdocs.com/tutorial/morewidgets.html#progressbar

After fumbling through the labltk sources and getting ocamlbuild to use my
local version, I got something that compiles and runs. Unfortunately, when
creating a progressbar I get:
> Fatal error: exception Protocol.TkError("invalid command name
"progressbar"")

Looking closer at [1], the progressbar is actually part of ttk (tiled tk),
not regular tk. I'm assuming this is why it can't be found as a toplevel
command.

The main source code for labltk (widgets.src) is fairly abstract, and
doesn't present any obvious control over namespacing. It also doesn't look
like there are any other ttk bindings in there, so I've got nothing to base
it off.

Does anyone know if it's possible to add ttk widgets to labltk? Is there a
library other than labltk that I should be using for ttk?

Also, is there somewhere more specific I should ask / send patches? Or is
labltk just part of ocaml core in terms of how the project is managed?

Thanks,
 - Tim Cuthbertson.

[-- Attachment #2: Type: text/html, Size: 1635 bytes --]

             reply	other threads:[~2013-10-03  9:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-03  9:45 Tim Cuthbertson [this message]
2013-10-03 11:43 ` ygrek
2013-10-04  0:24 ` Eliot Handelman
2013-10-04 12:24   ` Tim Cuthbertson
2013-10-04 14:14   ` Jacques Garrigue

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAC-LLDicLMG13A_AzJWxEmteJ+qG9ZF9s0ogbhMLhWQV6f8UZQ@mail.gmail.com \
    --to=gfxmonk@gmail.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox