From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 8CC5B7EE4B for ; Thu, 3 Oct 2013 11:45:34 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of gfxmonk@gmail.com) identity=pra; client-ip=209.85.223.171; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="gfxmonk@gmail.com"; x-sender="gfxmonk@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of gfxmonk@gmail.com designates 209.85.223.171 as permitted sender) identity=mailfrom; client-ip=209.85.223.171; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="gfxmonk@gmail.com"; x-sender="gfxmonk@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-ie0-f171.google.com) identity=helo; client-ip=209.85.223.171; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="gfxmonk@gmail.com"; x-sender="postmaster@mail-ie0-f171.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtsCACw8TVLRVd+rlGdsb2JhbABZgz9SskaQCwgWDgEBAQEHCwsJEiqCbAEbEQ0DEgkHXQERAQUBiCgBAw8Mm3ODA4xSgwqEHQoZJw1kiQEBBQyPYoQNA5gBkBQYKYRgKg X-IPAS-Result: AtsCACw8TVLRVd+rlGdsb2JhbABZgz9SskaQCwgWDgEBAQEHCwsJEiqCbAEbEQ0DEgkHXQERAQUBiCgBAw8Mm3ODA4xSgwqEHQoZJw1kiQEBBQyPYoQNA5gBkBQYKYRgKg X-IronPort-AV: E=Sophos;i="4.90,1024,1371074400"; d="scan'208";a="28952248" Received: from mail-ie0-f171.google.com ([209.85.223.171]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 03 Oct 2013 11:45:33 +0200 Received: by mail-ie0-f171.google.com with SMTP id at1so4749014iec.2 for ; Thu, 03 Oct 2013 02:45:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=lUtuiTqwl9daA+fBu70fCd8gc5CoKH57iyVwJdb8yP8=; b=pSvpQyILRQH6l/254kb6Ja/9VMj/jb7NsIiVmu8gLP5iHBY04BfQe6jJ2PJLmoQPIU 3WAm7N2uudJ3o7EvVKRb9IlIXzo5hQZ4q851GUecUcNlz+kG7ReM+z21547xfwmWZ6+R EBOmBPqJii7kxxOv+T4o8r8mcmbPEcL68ERfB4l3VzZcUW2CHlVWVyvtlE+cmylbVCui /EbJvCyniuqb9v8Zo5gzLJJhIPWjWDSmFji/7HHRuhVFJyR6bP3aJhYncc5BBUBYXIm+ 1W5qQKkZGCfN9fv9oz1mYO675+gKC4rBkXL/uN82VRJ5/MgOdfLJrNafJSEDV52K5z0D IBwA== X-Received: by 10.50.141.133 with SMTP id ro5mr1341306igb.35.1380793532388; Thu, 03 Oct 2013 02:45:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.77.73 with HTTP; Thu, 3 Oct 2013 02:45:12 -0700 (PDT) From: Tim Cuthbertson Date: Thu, 3 Oct 2013 19:45:12 +1000 Message-ID: To: caml-list@inria.fr Content-Type: multipart/alternative; boundary=089e0122f6ae01b4f604e7d30cf0 X-Validation-by: gfxmonk@gmail.com Subject: [Caml-list] Adding ttk (tile tk) bindings to labltk --089e0122f6ae01b4f604e7d30cf0 Content-Type: text/plain; charset=ISO-8859-1 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. --089e0122f6ae01b4f604e7d30cf0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I've started learning ocaml and TK at t= he same time, just to make things fun ;)

I'm using labltk,= initially via my OS package (fedora). I've built a plausible GUI to pl= ay 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#progress= bar

After fumbling through the labltk sources and getting ocamlb= uild to use my local version, I got something that compiles and runs. Unfor= tunately, when creating a progressbar I get:
> Fatal error: exception Protocol.TkError("invalid command name &qu= ot;progressbar"")

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

The main source code for labltk (widgets.src) is fairly abstract, and d= oesn'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 noth= ing 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?

Al= so, is there somewhere more specific I should ask / send patches? Or is lab= ltk just part of ocaml core in terms of how the project is managed?

Thanks,
=A0- Tim Cuthbertson.
--089e0122f6ae01b4f604e7d30cf0--