demos::widget_lib::slide - Online Linux Manual Page

Section : 3pm
Updated : 2020-11-09
Source : Tk804.035
Note : perl/Tk Documentation

NAMETk::SlideSwitch − a 2 position horizontal or vertical switch.

SYNOPSIS​ use Tk::SlideSwitch; ​ ​ my $sl = $frame1−>SlideSwitch( ​ −bg => 'gray', ​ −orient => 'horizontal', ​ −command => [$self => 'on'], ​ −llabel => [−text => 'OFF', −foreground => 'blue'], ​ −rlabel => [−text => 'ON', −foreground => 'blue'], ​ −troughcolor => 'tan', ​ )>pack(qw/−side left −expand 1/);

DESCRIPTIONTk::SlideSwitch is a Frame based composite mega-widget featuring a binary Scale widget surrounded by two Label widgets. The Scale's value can be either 0 or 1. The Labels are positioned to the left and right of the Scale if its orientation is horizontal, else on the top and bottom of the Scale.

OPTIONSIn addition to all Scale options, the following option/value pairs are also supported: −llabel A reference to an array of left (or top) Label configuration options. −rlabel A reference to an array of right (or bottom) Label configuration options.

METHODSThere are no special methods.

ADVERTISED WIDGETSComponent subwidgets can be accessed via the Subwidget method. This mega widget has no advertised subwidgets.

EXAMPLESee Synopsis.

BUGSThis widget uses only the pack geometry manager.

AUTHORsol0@Lehigh.EDU Copyright (C) 2002 − 2003, Steve Lidie. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

KEYWORDSSlideSwitch, Scale
0
Johanes Gumabo
Data Size   :   6,332 byte
man-Tk::demos::widget_lib::slide.3pmBuild   :   2025-03-22, 13:26   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   11 / 1,208,804
Visitor ID   :     :  
Visitor IP   :   18.116.19.246   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 25.03.22
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36


Very long time ago, I have the best tutor, Wenzel Svojanovsky. If someone knows the email address of Wenzel Svojanovsky, please send an email to johanesgumabo@gmail.com.
Help me, linux0001.com will expire on July 16, 2025. I have no money to renew it. View detail

If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|254|Tk::demos::widget_lib::slide.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|160|Tk::demos::widget_lib::slide.3pm|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|254|Tk::demos::widget_lib::slide.3pm|43|br══─}─══|'br══─}─══ )         (htmlprn|160|Tk::demos::widget_lib::slide.3pm|43|'br══─}─══ |'br══─}─══ )