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
17
votes
3 answers

Should I use Perl/Tk, Tcl::Tk or Tkx for a Perl GUI?

I really like Perl/Tk, but have come to the opinion that it's DOA. I think Tcl::Tk and Tkx are better solutions. Assume I drop Perl/Tk. Is the "most supported" route to go with Tcl::Tk (which hasn't been updated since 2007, and whose author…
xcramps
  • 1,203
  • 1
  • 9
  • 9
5
votes
1 answer

Drag and Drop IDE for TKX

Does anyone know of a good IDE for GUIs made with TKX? Drag and drop capabilities like NetBeans or VS would be nice.
Nate Glenn
  • 6,455
  • 8
  • 52
  • 95
5
votes
2 answers

Perl Tkx, What is the Difference Between "button" and "ttk__button"?

I have been working on a GUI using Perl Tkx, and discovered that there are two separate functions you can use to create buttons. (button and ttk__button). So far the only difference I found is that the button function appears to center justify the…
tjwrona1992
  • 8,614
  • 8
  • 35
  • 98
4
votes
1 answer

How to get the "width" of a string to be used in a Tkx label

I am making a simple application using Perl Tkx and allow the user to select a directory. Rather than using text wrapping or stretching the box to a ridiculous length to show the whole directory name, if a name is too long I would like to truncate…
tjwrona1992
  • 8,614
  • 8
  • 35
  • 98
3
votes
2 answers

How to avoid globals in Perl Tk (Tkx) GUI programming using an MVC model

I have an old and very large Perl Tk GUI application that I'm refactoring to Tkx. I want to split the interface into several packages so I can build up the application UI in a modular manner. Also, I want to keep the View separate from the Model,…
LozzerJP
  • 856
  • 1
  • 8
  • 23
3
votes
2 answers

Perl Update UI on Long Thread

I have a Perl script running on version 5.10 build 1004 of ActiveStates Active Perl on windows xp which creates a UI and then runs a long process after a button press. During this process I would like to update the UI (a list box) with status on…
Wesley
  • 2,921
  • 6
  • 27
  • 30
3
votes
1 answer

Perl Tkx examples or tutorials

I been trying to create Perl GUI using Tkx but I'm having trouble with a couple of issues. i have been looking at these…
Ivan Bacher
  • 5,855
  • 9
  • 36
  • 56
2
votes
3 answers

trouble installing Tkx perl module in Ubuntu 14.04

In order to install a package called PrimerMapper for designing primers on Ubuntu 14.04, I need to install a perl module called Tkx but facing trouble in installing it. So, kindly assist me in resolving this bug. For your quick and easy reference,…
2
votes
2 answers

How to achieve a resizable treeview widget with scrollbar in Perl Tkx?

Using Perl Tkx, I'm attempting to create a window with a treeview widget and a scrollbar to the right of it. I need the treeview widget to automatically resize when the user resizes the window. This is what I have: my $mw =…
epsilon_j
  • 325
  • 4
  • 14
2
votes
2 answers

Error Handling Using Perl Tkx

I am working on a Perl Tkx application and I am having trouble getting useful/correct error messages. I am attempting to use croak so it will tell me exactly where it fails, but every time it croaks it just says the error is located "at…
tjwrona1992
  • 8,614
  • 8
  • 35
  • 98
2
votes
1 answer

Running an external command in Perl / Tkx without blocking the GUI (Windows)

I am trying to create an interface with Perl + Tkx which could run external commands while clicking on a button. There are lot of documentaiton about how to proceed with the Tk module but few with Tkx. I still have found a few like this one but I am…
Jean-Francois T.
  • 11,549
  • 7
  • 68
  • 107
2
votes
1 answer

Perl Tkx menu "-underline" doesn't seem to work properly

I have been following the Tkx::Tutorial to try and learn how to make a GUI using Perl. I got to the section where it has an example of how to create a menu and followed it. It works almost entirely correct except for one feature. The -underline…
tjwrona1992
  • 8,614
  • 8
  • 35
  • 98
2
votes
3 answers

Do I always have to provide Tkx's -command argument an anonymous subroutine?

I find it a bit weird that I have to wrap defined subroutines anonymously when specifying the -command argument for Tkx widgets. An excerpt from a TkDocs tutorial demonstrates this: my $cb = $frm->new_ttk__button ( -text => "Calculate", …
Zaid
  • 36,680
  • 16
  • 86
  • 155
2
votes
1 answer

How can I scroll a single frame in Perl Tk?

I'm trying to create a GUI for a conversion program. I want to create a frame containing the log file, but I can't get it. I found some codes to make the entire window scrollable, but it's not what I want. I just want to scroll a frame containing a…
Sebapabst
  • 21
  • 2
2
votes
2 answers

Perl application with GUI for windows 7

I have done quite a bit of searching but cant seem to find a up to date answer. I am currently rewriting an application that was written in Perl. So I'm not starting from scratch. The application currently already has a basic GUI which is written in…
Ivan Bacher
  • 5,855
  • 9
  • 36
  • 56
1
2 3