tkx

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, by which point Tk had obviously decided on the reqwidth and reqheight values. sub CenterWi...

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 seemingly cannot be reached), or Tkx? Are either of these actively used/supported? ...

Trying to create a standalone app from a Perl script that uses tkx (Tcl/tk)

Here are my specs: OS X Tiger Perl 5.8 Using Tkx bundled with ActiveTcl v8.5 I've successfully created a standalone app with the above configuration using PAR/pp, but it's not a completely satisfactory solution: still requires Tcl/Tk to be installed opens up in a Tcl/Tk window with a default menu opens Terminal every time I run the ap...

How do I create a sash in Perl Tkx?

Does anyone know how to create a sash object in Perl Tkx? I am using ActivePerl and Perl 5.10. ...

How can I scroll a single frame in Perl Tk?

Hi everybody. 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 label with a chainging text-variable. I've even tried the following code: ...

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", -command => sub {calculate();} ); sub calculate { $meters = in...

[Tkx] Buffering/Updating issue for text element

Hi! 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 $txt_processed_domains = $mw->new_tk__text( -width => 40, -height => 10, -state => "disabled", -wrap => "n...