Main > Free Download Search >

Free tk 09022001 software for linux

tk 09022001

Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 245
MP3 Jukebox-Tk 09022001

MP3 Jukebox-Tk 09022001


MP3 Jukebox-Tk is an organizer/jukebox for local mp3 collections. more>>
MP3 Jukebox-Tk is an organizer/jukebox for local mp3 collections. MP3 Jukebox-Tk sorts your mp3 files by band and presents a jukebox style interface to let you choose which ones to play.

It then passes these off to XMMS for playing. It also keeps stats on what you listen to, and can use those stats to generate a weighted random playlist for you. Non-weighted (truly random) playlists are also available.

<<less
Download (0.019MB)
Added: 2006-04-21 License: GPL (GNU General Public License) Price:
1296 downloads
TK-10 0.1

TK-10 0.1


TK10 is a Bottlerocket GUI for Linux. more>>
TK10 is a Bottlerocket GUI for Linux. TK-10 is written in Tcl/Tk.

I wrote TK10 because I wanted a GUI application to control my X10 devices, and I wanted it to look and function like the HR12A controller that comes with the X10 Firecracker kit.

If you are familiar with the HR12A then you will find TK10 very easy to use. The on/off/dim buttons, device letter dial, and device number range switch work just like in the HR12A. You can even edit the device labels!

Installation:

To install TK10 the easy way, just run the install.sh script as root.

Alternatively, to install TK10 manually, do the following:

1. Copy the file tk10 to somewhere in your PATH (e.g. /usr/bin)
2. mkdir -p /usr/share/tk10-0.1
3. Copy the remaining files to /usr/share/tk10-0.1
(Note: if you can not create the directory /usr/share/tk10-0.1, then
pick another directory and modify the line below in tk10:
set MAINDIR "/usr/share/tk10-0.1"
to use the directory of your choice.)
4. Copy the file tk10.1 to somewhere in your MANPATH (e.g. /usr/man/man1).

TK10 assumes that your Tk interpreter is /usr/bin/wish. You may have to modify the first line of the tk10 file to reflect the correct location (e.g. #!/usr/local/bin/wish).

An optional icon (tk10.xpm) is included for use with window managers that support icons.

After installation, just run the command tk10.

<<less
Download (0.023MB)
Added: 2006-03-22 License: GPL (GNU General Public License) Price:
1313 downloads
tk_msg 0.1

tk_msg 0.1


tk_msg project is a small application which helps a programmer create message catalogs for localizing Tcl/Tk programs. more>>
tk_msg project is a small application which helps a programmer create message catalogs for localizing Tcl/Tk programs.

tk_msg can find your messages constructs when:

- the command starts with ::msgcat::mc or msgcat::mc or only mc
- the message string is enclosed from "double quotation marks"
- you dont use the character order ] in your message strings
(but you can display this if you want with [ msgcat::mc "I want to show
%s" {]} ]

tk_msg has a two windows: one with your orginal message and one window to put in the translation - tk_msg is written in pure tcl/tk (no tcl/tk-extensions are required).

A German translation of the program is available.

<<less
Download (0.041MB)
Added: 2006-10-12 License: GPL (GNU General Public License) Price:
1108 downloads
Tk::Mirror 0.02

Tk::Mirror 0.02


Tk::Mirror is a Perl extension for a graphic user interface to update local or remote directories in both directions. more>>
Tk::Mirror is a Perl extension for a graphic user interface to update local or remote directories in both directions.

SYNOPSIS

# in the simplest kind and manner
use Tk::Mirror;
use Tk;
my $mw->MainWindow->new();
$mw->Mirror()->grid();
MainLoop();
# in a detailed kind
use Tk;
use Tk::Mirror;
my $mw = MainWindow->new();
my $mirror = $mw->Mirror(
-localdir => "TestA",
-remotedir => "TestD",
-usr => my_ftp@username.de
-ftpserver => "ftp.server.de",
-pass => "my_password",
-debug => 1,
-delete => "enable",
-exclusions => ["private.txt", "secret.txt"],
-timeout => 60,
-connection => undef, # or a connection to a ftp-server
)->grid();
for(keys(%{$mirror->GetChilds()}))
{
$mirror->Subwidget($_)->configure(
-font => "{Times New Roman} 14 {bold}",
);
}
for(qw/
TreeLocalDir
TreeRemoteDir
/)
{
$mirror->Subwidget($_)->configure(
-background => "#FFFFFF",
-width => 40,
-height => 20,
);
}
for(qw/
bEntryUsr
EntryPass
bEntryFtpServer
bEntryLocalDir
bEntryRemoteDir
/)
{
$mirror->Subwidget($_)->configure(
-background => "#FFFFFF",
);
}
MainLoop();

This is a graphic user interface to compare and update local with remote directories in both directions.

<<less
Download (0.007MB)
Added: 2006-07-28 License: Perl Artistic License Price:
1183 downloads
Tk::bind 804.027

Tk::bind 804.027


Tk::bind can arrange for X events to invoke callbacks. more>>
Tk::bind can arrange for X events to invoke callbacks.

SYNOPSIS

Retrieve bindings:

$widget->bind
$widget->bind(tag)
$widget->bind(sequence)
$widget->bind(tag,sequence)

Associate and destroy bindings:

$widget->bind(sequence,callback)
$widget->bind(tag,sequence,callback)

The bind method associates callbacks with X events. If callback is specified, bind will arrange for callback to be evaluated whenever the event(s) given by sequence occur in the window(s) identified by $widget or tag. If callback is an empty string then the current binding for sequence is destroyed, leaving sequence unbound. In all of the cases where a callback argument is provided, bind returns an empty string.

If sequence is specified without a callback, then the callback currently bound to sequence is returned, or undef is returned if there is no binding for sequence. If neither sequence nor callback is specified, then the return value is a list whose elements are all the sequences for which there exist bindings for tag.

If no tag is specified then the bind refers to $widget. If tag is specified then it is typically a class name and the bind refers to all instances of the class on the MainWindow associated with $widget. (It is possible for tag to be another "widget object" but this practice is deprecated.) Perls ref($object) can be used to get the class name of any object. Each window has an associated list of tags, and a binding applies to a particular window if its tag is among those specified for the window. Although the bindtags method may be used to assign an arbitrary set of binding tags to a window, the default binding tags provide the following behavior:

If a tag is the name of an internal window the binding applies to that window.

If the tag is the name of a toplevel window the binding applies to the toplevel window and all its internal windows.
If the tag is the name of a class of widgets, such as Tk::Button, the binding applies to all widgets in that class;
If tag has the value all, the binding applies to all windows descended from the MainWindow of the application.

<<less
Download (5.7MB)
Added: 2007-08-21 License: Perl Artistic License Price:
794 downloads
Tk::form 804.027

Tk::form 804.027


Tk::form is a Perl module with a geometry manager based on attachment rules. more>>
Tk::form is a Perl module with a geometry manager based on attachment rules.

SYNOPSIS

$widget->form?(args)?
$widget->formOption?(args)?

The form method is used to communicate with the form Geometry Manager, a geometry manager that arranges the geometry of the children in a parent window according to attachment rules. The form geometry manager is very flexible and powerful; it can be used to emulate all the existing features of the Tk packer and placer geometry managers (see pack, place). The form method can have any of several forms, depending on Option:

$slave->form?(options)?

Sets or adjusts the attachment values of the slave window according to the -option=>value argument pairs.

-b => attachment

Abbreviation for the -bottom option.

-bottom => attachment

Specifies an attachment for the bottom edge of the slave window. The attachment must specified according to "SPECIFYING ATTACHMENTS" below.

-bottomspring => weight

Specifies the weight of the spring at the bottom edge of the slave window. See "USING SPRINGS" below.

-bp => value

Abbreviation for the -padbottom option.

-bs => weight

Abbreviation for the -bottomspring option.

-fill => style

Specifies the fillings when springs are used for this widget. The value must be x, y, both or none.

-in => $master

Places the slave window into the specified $master window. If the slave was originally in another master window, all attachment values with respect to the original master window are discarded. Even if the attachment values are the same as in the original master window, they need to be specified again. The -in flag, when needed, must appear as the first flag of options. Otherwise an error is generated.

-l => attachment

Abbreviation for the -left option.

-left => attachment

Specifies an attachment for the left edge of the slave window. The attachment must specified according to "SPECIFYING ATTACHMENTS" below.

-leftspring => weight

Specifies the weight of the spring at the left edge of the slave window. See "USING SPRINGS" below.

-lp => value

Abbreviation for the -padleft option.

-ls => weight

Abbreviation for the -leftspring option.

-padbottom => value

Specifies the amount of external padding to leave on the bottom side of the slave. The value may have any of the forms acceptable to Tk_GetPixels.

-padleft => value

Specifies the amount of external padding to leave on the left side of the slave.

-padright => value

Specifies the amount of external padding to leave on the right side of the slave.

-padtop => value

Specifies the amount of external padding to leave on the top side of the slave.

-padx => value

Specifies the amount of external padding to leave on both the left and the right sides of the slave.

-pady => value

Specifies the amount of external padding to leave on both the top and the bottom sides of the slave.

-r => attachment

Abbreviation for the -right option.

-right => attachment

Specifies an attachment for the right edge of the slave window. The attachment must specified according to "SPECIFYING ATTACHMENTS" below.

-rightspring => weight

Specifies the weight of the spring at the right edge of the slave window. See "USING SPRINGS" below.

-rp => value

Abbreviation for the -padright option.

-rs => weight

Abbreviation for the -rightspring option.

-t => attachment

Abbreviation for the -top option.

-top => attachment

Specifies an attachment for the top edge of the slave window. The attachment must specified according to "SPECIFYING ATTACHMENTS" below.

-topspring => weight

Specifies the weight of the spring at the top edge of the slave window. See "USING SPRINGS" below.

-tp => value

Abbreviation for the -padtop option.

-ts => weight

Abbreviation for the -topspring option.

$master->formCheck

This method checks whether there is circular dependency in the attachments of the masters slaves (see "CIRCULAR DEPENDENCY" below). It returns the Boolean value TRUE if it discover circular dependency and FALSE otherwise.

$slave->formForget

Removes the slave from its master and unmaps its window. The slave will no longer be managed by form. All attachment values with respect to its master window are discarded. If another slave is attached to this slave, then the attachment of the other slave will be changed to grid attachment based on its geometry.

$master->formGrid?(x_size, y_size)?

When x_size and y_size are given, this method returns the number of grids of the $master window in a pair of integers of the form (x_size, y_size). When both x_size and y_size are given, this method changes the number of horizontal and vertical grids on the master window.

$slave->formInfo?(-option)?

Queries the attachment options of a slave window. -option can be any of the options accepted by the form method. If -option is given, only the value of that option is returned. Otherwise, this method returns a list whose elements are the current configuration state of the slave given in the same option-value form that might be specified to form. The first two elements in this list list are "-in=>$master" where $master is the slaves master window.

$master->formSlaves

Returns a list of all of the slaves for the master window. The order of the slaves in the list is the same as their order in the packing order. If master has no slaves then an empty string is returned.

<<less
Download (5.7MB)
Added: 2007-07-05 License: Perl Artistic License Price:
842 downloads
Tk::Help 0.2

Tk::Help 0.2


Tk::Help is simple widget for creating a help system for Perl/Tk applications. more>>
Tk::Help is simple widget for creating a help system for Perl/Tk applications.

SYNOPSIS

use Tk::Help;
my $help = $main->Help(-variable => @array);

This is an answer to a personal need to be able to create help systems for my Perl/Tk applications. Originally, I just created a really big dialog and formatted all the text, which was tedious and clumsy.

I wanted to create something that looked similar to the Windows help. This is by no means as featured or fluid as the Windows help, but it should provide a (somewhat) simple means to create a help dialog where all someone should need to do is create the array with their help content.

<<less
Download (0.005MB)
Added: 2006-10-27 License: Perl Artistic License Price:
1092 downloads
ptkmixer 0.1

ptkmixer 0.1


ptkmixer is a Perl Tk Audio Mixer with an easy-to-use GUI. more>>
ptkmixer is a Perl Tk Audio Mixer with an easy-to-use GUI. You will need to have Tk and Audio-Mixer perl modules to run the program.Look in the documentation section for information how to install perl modules. Tested on Peanut Linux .

Type make install for default install.
<<less
Download (0.014MB)
Added: 2006-07-31 License: GPL (GNU General Public License) Price:
1180 downloads
Tk::Tiler 804.027

Tk::Tiler 804.027


Tk::Tiler is a scrollable frame with sub-widgets arranged into rows. more>>
Tk::Tiler is a scrollable frame with sub-widgets arranged into rows.

SYNOPSIS

use Tk::Tiler;

my $tl = $parent->Scrolled(Tiler, -columns => n, -rows => n);

my $a = $tl->Xxxxx(...);
my $b = $tl->Xxxxx(...);
my $c = $tl->Xxxxx(...);

$tl->Manage($a,$b,$c);

Tiler is derived form Tk::Frame. It is a geometry managing widget which accepts widgets to manage. It places the widgets in a grid with as many widgets as possible in a row. All the "slots" in the grid are the same size, which is determined by the largest managed widget.

The grid may be scrolled vertically.

<<less
Download (5.7MB)
Added: 2007-08-21 License: Perl Artistic License Price:
794 downloads
Tk::after 804.027

Tk::after 804.027


Tk::after can execute a command after a time delay. more>>
Tk::after can execute a command after a time delay.

SYNOPSIS

$widget->after(ms)
$id = $widget->after(ms?,callback?)
$id = $widget->repeat(ms?,callback?)
$widget->afterCancel($id)
$id = $widget->afterIdle(callback)
$widget->afterInfo?($id)?
$id->time(?delay?)

This method is used to delay execution of the program or to execute a callback in background sometime in the future.
In perl/Tk $widget->after is implemented via the class Tk::After, and callbacks are associated with $widget, and are automatically cancelled when the widget is destroyed. An almost identical interface, but without automatic cancel, and without repeat is provided via Tk::after method.

Internal Details

The internal Tk::After class has the following synopsis:

$id = Tk::After->new($widget, tid, $time, once, callback);
$id = Tk::After->new($widget, tid, $time, repeat, callback);
$id->cancel;
$id->time(?delay?);

$id is a Tk::After object, an array of 5 elements:

$widget is the parent widget reference.

tid is the internal timer id, a unique string.

$time is the string idle, representing an idle queue timer, or a integer millisecond value.

once or repeat specifies whether the timer is a one-time after event, or a repeating repeat event.

callback specifies a Perl/Tk Tk::Callback object.

Changing a repeat timer interval

Its posible to change a repeat timers delay value, or even cancel any timer, using the time method. If delay is specified and non-zero, a new timer delay is established. If delay is zero the timer event is canceled just as if $id->cancel were invoked. In all cases the current millisecond timer delay is returned.

Note: the new timer delay will take effect on the subsequent timer event - this command will not cancel the pending timer event and re-issue it with the new delay time.

The after() method has several forms as follows:

$widget->after(ms)

The value ms must be an integer giving a time in milliseconds. The command sleeps for ms milliseconds and then returns. While the command is sleeping the application does not respond to events.

$widget->after(ms,callback)

In this form the command returns immediately, but it arranges for callback be executed ms milliseconds later as an event handler. The callback will be executed exactly once, at the given time. The command will be executed in context of $widget. If an error occurs while executing the delayed command then the Tk::Error mechanism is used to report the error. The after command returns an identifier (an object in the perl/Tk case) that can be used to cancel the delayed command using afterCancel.

$widget->repeat(ms,callback)

In this form the command returns immediately, but it arranges for callback be executed ms milliseconds later as an event handler. After callback has executed it is re-scheduled, to be executed in a futher ms, and so on until it is cancelled.

$widget->afterCancel($id)

$id->cancel

Cancels the execution of a delayed command that was previously scheduled. $id indicates which command should be canceled; it must have been the return value from a previous after command. If the command given by $id has already been executed (and is not scheduled to be executed again) then afterCancel has no effect.

$widget->afterCancel(callback)

This form is not robust in perl/Tk - its use is deprecated. This command should also cancel the execution of a delayed command. The callback argument is compared with pending callbacks, if a match is found, that callback is cancelled and will never be executed; if no such callback is currently pending then the afterCancel has no effect.

$widget->afterIdle(callback)

Arranges for callback to be evaluated later as an idle callback. The script will be run exactly once, the next time the event loop is entered and there are no events to process. The command returns an identifier that can be used to cancel the delayed command using afterCancel. If an error occurs while executing the script then the Tk::Error mechanism is used to report the error.

$widget->afterInfo?($id)?

This command returns information about existing event handlers. If no $id argument is supplied, the command returns a list of the identifiers for all existing event handlers created by the after and repeat commands for $widget. If $id is supplied, it specifies an existing handler; $id must have been the return value from some previous call to after or repeat and it must not have triggered yet or been cancelled. In this case the command returns a list with three elements. The first element of the list is the callback associated with $id, the second element is either idle or the integer timer millisecond value to indicate what kind of event handler it is, and the third is a string once or repeat to differentiate an after from a repeat event.

The after(ms) and afterIdle forms of the command assume that the application is event driven: the delayed commands will not be executed unless the application enters the event loop. In applications that are not normally event-driven, the event loop can be entered with the vwait and update commands.

<<less
Download (5.7MB)
Added: 2007-08-21 License: Perl Artistic License Price:
795 downloads
Tk::event 804.027

Tk::event 804.027


Tk::event contains miscellaneous event facilities: define virtual events and generate events. more>>
Tk::event contains miscellaneous event facilities: define virtual events and generate events.

SYNOPSIS

$widget->eventAction(?arg, arg, ...?);

The eventAction methods provides several facilities for dealing with window system events, such as defining virtual events and synthesizing events. Virtual events are shared by all widgets of the same MainWindow. Different MainWindows can have different virtual event.

The following methods are currently supported:

$widget->eventAdd(, sequence ?,sequence, ...?)

Associates the virtual event virtual with the physical event sequence(s) given by the sequence arguments, so that the virtual event will trigger whenever any one of the sequences occurs. Virtual may be any string value and sequence may have any of the values allowed for the sequence argument to the bind method. If virtual is already defined, the new physical event sequences add to the existing sequences for the event.

$widget->eventDelete( ?,sequence, sequence, ...?)

Deletes each of the sequences from those associated with the virtual event given by virtual. Virtual may be any string value and sequence may have any of the values allowed for the sequence argument to the bind method. Any sequences not currently associated with virtual are ignored. If no sequence argument is provided, all physical event sequences are removed for virtual, so that the virtual event will not trigger anymore.

$widget->eventGenerate(event ?,option => value, option => value, ...?)

Generates a window event and arranges for it to be processed just as if it had come from the window system. $window is a reference to the window for which the event will be generated. Event provides a basic description of the event, such as < Shift-Button-2 > or >. If Window is empty the whole screen is meant, and coordinates are relative to the screen. Event may have any of the forms allowed for the sequence argument of the bind method except that it must consist of a single event pattern, not a sequence. Option-value pairs may be used to specify additional attributes of the event, such as the x and y mouse position; see "EVENT FIELDS" below. If the -when option is not specified, the event is processed immediately: all of the handlers for the event will complete before the eventGenerate method returns. If the -when option is specified then it determines when the event is processed.

$widget->eventInfo(?>?)

Returns information about virtual events. If the argument is omitted, the return value is a list of all the virtual events that are currently defined. If is specified then the return value is a list whose elements are the physical event sequences currently defined for the given virtual event; if the virtual event is not defined then undef is returned.

<<less
Download (5.7MB)
Added: 2007-08-21 License: Perl Artistic License Price:
795 downloads
Tk::Date 0.42

Tk::Date 0.42


Tk::Date is a date/time widget for perl/Tk. more>>
Tk::Date is a date/time widget for perl/Tk.

SYNOPSIS

use Tk::Date;
$date_widget = $top->Date->pack;
$date_widget->get("%x %X");

Tk::Date implements a date/time widget. There are three ways to input a date:
Using the keyboard to input the digits and the tab key or the mouse pointer to move focus between fields.

Using up and down cursor keys to increment/decrement the date (only with installed Tk::NumEntryPlain widget).

Selecting up and down arrow buttons will increment or decrement the value of the active field (only with installed Tk::FireButton widget).

The Date/Time Format

Unlike Java, Perl does not have a date/time object. However, it is possible to use the unix time (seconds since epoch, that is 1st January 1970) as a replacement. This is limited, since on most architectures, the valid range is between 14th December 1901 and 19th January 2038. For other dates, it is possible to use a hash notation:

{ y => year,
m => month,
d => day,
H => hour,
M => minute,
S => second }

The abbreviations are derivated from the format letters of strftime. Note that year is the full year (1998 instead of 98) and month is the real month number, as opposed to the output of localtime(), where the month is subtracted by one.

In this document, the first method will be referred as unixtime and the second method as datehash.

STANDARD OPTIONS

Tk::Date descends from Frame and inherits all of its options.

-orient

Specified orientation of the increment and decrements buttons. May be vertical (default) or horizontal.

<<less
Download (0.018MB)
Added: 2006-06-12 License: Perl Artistic License Price:
1230 downloads
Tk::Canvas 804.027

Tk::Canvas 804.027


Tk::Canvas Perl module can create and manipulate Canvas widgets. more>>
Tk::Canvas Perl module can create and manipulate Canvas widgets.

SYNOPSIS

$canvas = $parent->Canvas(?options?);

STANDARD OPTIONS

-background -highlightthickness -insertwidth -state -borderwidth -insertbackground -relief -tile -cursor -insertborderwidth -selectbackground -takefocus -highlightbackground -insertofftime -selectborderwidth -xscrollcommand -highlightcolor -insertontime -selectforeground -yscrollcommand

WIDGET-SPECIFIC OPTIONS

Name: closeEnough
Class: CloseEnough
Switch: -closeenough

Specifies a floating-point value indicating how close the mouse cursor must be to an item before it is considered to be ``inside the item. Defaults to 1.0.

Name: confine
Class: Confine
Switch: -confine

Specifies a boolean value that indicates whether or not it should be allowable to set the canvass view outside the region defined by the scrollRegion argument. Defaults to true, which means that the view will be constrained within the scroll region.

Name: height
Class: Height
Switch: -height

Specifies a desired window height that the canvas widget should request from its geometry manager. The value may be specified in any of the forms described in the "COORDINATES" section below.

Name: scrollRegion
Class: ScrollRegion
Switch: -scrollregion

Specifies a list with four coordinates describing the left, top, right, and bottom coordinates of a rectangular region. This region is used for scrolling purposes and is considered to be the boundary of the information in the canvas. Each of the coordinates may be specified in any of the forms given in the "COORDINATES" section below.

Name: state
Class: State
Switch: -state

Modifies the default state of the canvas where state may be set to one of: normal, disabled, or hidden. Individual canvas objects all have their own state option, which overrides the default state. Many options can take separate specifications such that the appearance of the item can be different in different situations. The options that start with "active" control the appearence when the mouse pointer is over it, while the option starting with "disabled" controls the appearence when the state is disabled.

Name: width
Class: width
Switch: -width

Specifies a desired window width that the canvas widget should request from its geometry manager. The value may be specified in any of the forms described in the "COORDINATES" section below.

Name: xScrollIncrement
Class: ScrollIncrement
Switch: -xscrollincrement

Specifies an increment for horizontal scrolling, in any of the usual forms permitted for screen distances. If the value of this option is greater than zero, the horizontal view in the window will be constrained so that the canvas x coordinate at the left edge of the window is always an even multiple of xScrollIncrement; furthermore, the units for scrolling (e.g., the change in view when the left and right arrows of a scrollbar are selected) will also be xScrollIncrement. If the value of this option is less than or equal to zero, then horizontal scrolling is unconstrained.

Name: yScrollIncrement
Class: ScrollIncrement
Switch: -yscrollincrement

Specifies an increment for vertical scrolling, in any of the usual forms permitted for screen distances. If the value of this option is greater than zero, the vertical view in the window will be constrained so that the canvas y coordinate at the top edge of the window is always an even multiple of yScrollIncrement; furthermore, the units for scrolling (e.g., the change in view when the top and bottom arrows of a scrollbar are selected) will also be yScrollIncrement. If the value of this option is less than or equal to zero, then vertical scrolling is unconstrained.

<<less
Download (5.7MB)
Added: 2007-07-30 License: Perl Artistic License Price:
818 downloads
Tk::Balloon 804.027

Tk::Balloon 804.027


Tk::Balloon is a pop up help balloons. more>>
Tk::Balloon is a pop up help balloons.

SYNOPSIS

use Tk::Balloon;
...
$b = $top->Balloon(-statusbar => $status_bar_widget);

# Normal Balloon:
$b->attach($widget,
-balloonmsg => "Balloon help message",
-statusmsg => "Status bar message");

# Balloon attached to entries in a menu widget:
$b->attach($menu, -state => status,
-msg => [first menu entry,
second menu entry,
...
],
);

# Balloon attached to individual items in a canvas widget:
$b->attach($canvas, -balloonposition => mouse,
-msg => {item1 => msg1,
tag2 => msg2,
...
},
);

# Balloon attached to items in a listbox widget:
$b->attach($listbox, -balloonposition => mouse,
-msg => [first listbox element,
2nd listbox element,
...
],
);

Balloon provides the framework to create and attach help balloons to various widgets so that when the mouse pauses over the widget for more than a specified amount of time, a help balloon is popped up.

<<less
Download (5.7MB)
Added: 2006-10-30 License: Perl Artistic License Price:
1090 downloads
Tk::bindtags 804.027

Tk::bindtags 804.027


Tk::bindtags can determine which bindings apply to a window, and order of evaluation. more>>
Tk::bindtags can determine which bindings apply to a window, and order of evaluation.

SYNOPSIS

$widget->bindtags([tagList]); @tags = $widget->bindtags;

When a binding is created with the bind command, it is associated either with a particular window such as $widget, a class name such as Tk::Button, the keyword all, or any other string. All of these forms are called binding tags. Each window has a list of binding tags that determine how events are processed for the window. When an event occurs in a window, it is applied to each of the windows tags in order: for each tag, the most specific binding that matches the given tag and event is executed. See the Tk::bind documentation for more information on the matching process.

By default, each window has four binding tags consisting of the the windows class name, name of the window, the name of the windows nearest toplevel ancestor, and all, in that order. Toplevel windows have only three tags by default, since the toplevel name is the same as that of the window.

Note that this order is different from order used by Tcl/Tk. Tcl/Tk has the window ahead of the class name in the binding order. This is because Tcl is procedural rather than object oriented and the normal way for Tcl/Tk applications to override class bindings is with an instance binding. However, with perl/Tk the normal way to override a class binding is to derive a class. The perl/Tk order causes instance bindings to execute after the class binding, and so instance bind callbacks can make use of state changes (e.g. changes to the selection) than the class bindings have made.

The bindtags command allows the binding tags for a window to be read and modified.

If $widget->bindtags is invoked without an argument, then the current set of binding tags for $widget is returned as a list. If the tagList argument is specified to bindtags, then it must be a reference to and array; the tags for $widget are changed to the elements of the array. (A reference to an anonymous array can be created by enclosin the elements in [ ].) The elements of tagList may be arbitrary strings or widget objects, if no window exists for an object at the time an event is processed, then the tag is ignored for that event. The order of the elements in tagList determines the order in which binding callbacks are executed in response to events. For example, the command

$b->bindtags([$b,ref($b),$b->toplevel,all])

applies the Tcl/Tk binding order which binding callbacks will be evaluated for a button (say) $b so that $bs instance bindings are invoked first, following by bindings for $bs class, followed by bindings for $bs toplevel, followed by all bindings.

If tagList is an empty list i.e. [], then the binding tags for $widget are returned to the perl/Tk default state described above.

The bindtags command may be used to introduce arbitrary additional binding tags for a window, or to remove standard tags. For example, the command

$b->bindtags([TrickyButton,$b->toplevel,all])

replaces the (say) Tk::Button tag for $b with TrickyButton. This means that the default widget bindings for buttons, which are associated with the Tk::Button tag, will no longer apply to $b, but any bindings associated with TrickyButton (perhaps some new button behavior) will apply.

<<less
Download (5.7MB)
Added: 2007-07-23 License: Perl Artistic License Price:
823 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 5
  • 1
  • 2
  • 3
  • 4
  • 5