Questions tagged [tkx]

Tkx is an interface to Tk from Perl. Tk is a GUI toolkit tied to the Tcl language; Tkx provides a bridge to Tcl that allows Tk based applications to be written in Perl.

Description

The philosophy of Tkx is to provide a very thin wrapper on top of Tcl. You get exactly the behavior described in the Tcl/Tk documentation with no surprises added by the Perl layer.

The Tkx documentation describes the mapping between Tcl syntax and Perl syntax, but defers most everything else to the Tk documentation. You should consult the documentation for the version of Tk that you're using.

TkDocs provides tutorials for using Tk with examples using bindings from several languages, including Perl via Tkx.

Related tags

40 questions
1
vote
0 answers

Built-in Tkx icons

In Perl Tkx I created my own popups which work great. But I would like to embed those built-in icons, like info, question. Does anyone know how I can do that on my own widgets and how? sub PopDialog { my ($TITLE, $NOTE, @buttons) = @_; my…
1
vote
1 answer

How do you reposition the main window under Perl Tkx?

Having more or less converted a lot of old Tk scripts over to Tkx I'm stuck for an port for the following function which repositions the window passed in as a parameter in the centre of the screen. I used to call this just before calling MainLoop,…
Colin Foster
  • 95
  • 2
  • 7
0
votes
1 answer

How do I intercept the event when the user clicks the "close" button in a toplevel window?

When the user clicks the system-provided close button in a toplevel window, I need to free resources. The question: how do I intercept this event, so that I can call some of my own code? I've looked through the docs, but can't find anything about…
Matt Fenwick
  • 48,199
  • 22
  • 128
  • 192
0
votes
1 answer

Where can I find a working sample program using Canvas under Tkx?

I am using Active State Perl on Win7, and would like to run Canvas under Tkx. The Active State build is a total kloodge of mutually incompatible Tk and Tkx modules in similar but not identical folders, and example programs that won't run because…
user1067305
  • 3,233
  • 7
  • 24
  • 29
0
votes
2 answers

Buffering/Updating issue for text element

I have this code: #!/usr/bin/perl use strict; use Tkx; my $mw = Tkx::widget->new('.'); $mw->g_wm_minsize( 400, 350 ); my $btn_start = $mw->new_ttk__button( -text => "Start", -width => 60, -command => sub { start(); } ); my…
gangabass
  • 10,607
  • 2
  • 23
  • 35
0
votes
1 answer

Tkx: Is it possible to change a button's callback during execution

As a really simplistic example, suppose I have a single button and each time I click the button I want it to call a different callback. So, it is first set up to call hello(), then hello() changes things so the next time the button is clicked it…
Colin Wu
  • 611
  • 7
  • 25
0
votes
1 answer

Perl module for making TKX Chart

Is there any perl module for making chart in TKX. atleast any options for image based chart shall also be OK
0
votes
2 answers

Perl Tkx entry validation not working

I am having an issue getting my text validation to work properly. Basically I have 2 entry boxes, one to enter the name of a branch in CVS and the other to enter a directory name. I want my program to validate the text in each box whenever it is…
tjwrona1992
  • 8,614
  • 8
  • 35
  • 98
0
votes
0 answers

Perl error when using Tkx package

I have a problem with the Tkx package. I use Perl 5.14.2 on CentOS, and I know that this version of Perl basically contains the Tkx package. When I try to get the version of Tkx (with the following code snipet) perl -MTkx -e 'print…
zsidanyi
  • 105
  • 1
  • 2
  • 6
0
votes
1 answer

Does tkx have a tagConfigure equivalent and a way to change text colors on a text widget?

Does tkx have a tagConfigure equivalent and a way to change text colors on a text widget? I have a tool I created years ago based on perl tk which I am trying to convert to tkx using ActivePerl 5.x and beyond. I have made progress but one of the…
1 2
3