Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 49.481.552 Times

Tk::Gpack 0.8

  Date Added: January 24, 2010  |  Visits: 1.002

Tk::Gpack

Report Broken Link
Printer Friendly Version


Product Homepage
Download (89 downloads)



Tk::Gpack module contains abbreviated geometry arguments for pack, grid and place geometry managers. This module exports four functions for each of the different geometry mananers into the Tk namespace. These functions provide a variety of styles for controlling the indevidual geometry of one, or bulk groups of widgets. Each geometry manager has a series of single letter abbreviations allowing a significant reduction in code, while remaining fairly intuitive. SYNOPSIS use Tk::Gpack ; gpack, ggrid, and gplace are group packers, they recieve an even numbered list of alternating widgets and abbreviations. gpack($one, slan $two, sran $three, slanx1fb) ; # group pack ggrid($one, r25c10, $two, c9r15, $three, c1r1se ) ; # group grid gplace($one, w40h40x120y120anw, $two, x40y40ase, $three, aww20h20x25y140) ; # group placer tpack, tgrid, and tplace are target packers, and use exactly the same format except they take a preceding target widget, (typically a frame) which will be automatically be used in conjunction with the -in => argument. tpack($FRAME1, $one, slan $two, sran $three, slanx1fb) ; # target pack tgrid($TOPLEVEL1, $one, r25c10, $two, c9r15, $three, c1r1se ) ; # target grid tplace($MW, $one, w40h40x120y120anw, $two, x40y40ase, $three, aww20h20x25y140) ; # target placer xpack xgrid and xplace are expand packers, and used inline as a direct replacement to pack grid and place. The first string passed is the abbreviation string, while anything remaining will be parsed as the standard verbose options. $one->xpack(slan, -in => $FRAME1) ; # expand pack $two->xgrid(r4c4sw, -in => $TOPLEVEL2) ; # expand grid $three->xplace(x20y20aw, -in => $MW) ; # expand place spack sgrid and splace are self packers, they assume that an abbreviation is embedded in the widget as an option called -geometry. You must be using derived widgets for this to work, and have defined a configspec -geometry. The self packers perform the same as xpack in that they permit additional verbose option pairs to be passed which will be appended to the expansion of the embedded abbreviation. If you are using a default widget geometry as shown below, you can still override it by simply using xpack in place of spack. (spack wont take the abbreviation as an argument) This is particularly handly for templated code. To use spack splace and sgrid do the following: package DerivedButton ; ... sub Populate { $self->ConfigSpecs(-geometry => [PASSIVE, data, Data, slan]) ; # <------ Abbreviation } #!/usr/bin/perl -w use Tk ; ... my $DButton = $mw->DerivedButton()->spack(-in => $foo) ; Obviously this last example is not complete. Once youve built a derived widget it should make sense though. DETAILS The abbreviations are fairly intuitive. All supported options are represented by a single character. For the pack geometry manager all passed values are also single characters. For grid and place passed values may be multiple characters. Numeric arguments for grid and place are variable length integers for example. There are a few redundant characters, but they work as expected. NOT ALL OPTIONS TRANSLATE, in this version. (And probably for quite a few versions to come) But the most used ones do. Please review the following translation lists to see How things are supported at this time. SUPPORTED TRANSLATIONS # OPTIONS pack() ################### x = -expand s = -side a = -anchor f = -fill X = -padx Y = -pady # VALUES pack() #################### c = center l = left r = right t = top n = n s = s e = e w = w y = y x = x b = both b = bottom # OPTIONS grid() #################### r = -row c = -column s = -sticky # VALUES grid() #################### n = n s = s e = e w = w # OPTIONS place() #################### w = -width h = -height x = -x y = -y a = -anchor # VALUES place() #################### n = n ne = ne nw = nw s = s se = se sw = sw e = e.

Requirements: No special requirements
Platforms: Linux
Keyword: Geometry Grid Libraries One Options Pack Place Programming Tkgpack Values
Users rating: 0/10

License: Freeware Size: 6.14 KB
USER REVIEWS
More Reviews or Write Review


TK::GPACK RELATED
Networking  -  FV All in One SEO Pack 1.6.11
A simplified version of All in One SEO Pack!Streamlined interface with no keywords field. Option to turn off excerpts and automated descriptions. Far better for pure SEO and for client use. Check screenshots.Optimizes your Wordpress blog for...
10 KB  
Modules  -  All In One SEO Pack Windows Live Writer Bridge 1.0
By default users are unable to specify custom fields from Windows Live Writer. InstallationUnpack and upload it to the /wp-content/plugins/ directory.Activate the plugin through the 'Plugins' menu in WordPress. Key features "All In One SEO Pack...
 
Modules  -  Missing Data All In One SEO Pack Plugin, Add-on 1.0
The "Missing Data - All In One SEO Pack" Add-on, is a plugin which can be used with the "All in One SEO Pack" plugin. The "Missing Data - All In One SEO Pack" add-on searches your published posts and pages, that don't contain a Title, Meta...
10 KB  
Programming  -  ELF statifier 1.6.11
ELF statifier create from dynamically linked executables and all its libraries one file. This file can be copied and run on another machine without need to drag all its libraries. Dynamically linked executables are smaller then statically...
97.28 KB  
Modules  -  x7Host's Videox7 UGC Plugin 2.5.3.4
This plugin is a fork of Kaltura's original "All In One Video Pack" plugin, enhanced in many ways and designed from the bottom up to be easily integrated with the self-hosted Kaltura Community Edition.This is not just another video embed tool - it...
983.04 KB  
Utilities  -  Dylan Code Collection 1.7
A collection of useful libraries written in the Dylan programming language. The intent of this project is to provide easily accessible libraries for people developing applications using Functional Developer and/or Gwydion Dylan.
673.63 KB  
Programming  -  kin 0.0.2
kin is a set of libraries and tools supporting meta-programming for engineering and technical computing applications. This JVM version of kin has been superseded by the stand-alone version being developed at http://purl.org/net/kin.
477.44 KB  
Miscellaneous  -  Easily call executables from Python 1.0
One common aspect of programming is calling executables and processing results. It is not as easy or elegant to do this in Python as it is in a shell scripting language, such as bash. This script implements a shell-like module in Python which...
 
Communication  -  Mobile user Localization in WSN 1.0
There are two stages in our experiments, one is to find the predicted values of the signal strengths (RSSId-deOaos) by using Grey prediction algorithm and second is to find the location coordinate of the mobile user by using Dynamic Triangular...
10 KB  
Libraries  -  Multi-Agent Grid Engine library 0.1.3
Multi-Agent Grid Engine library is an experiment aimed to make a programming tool for creation of autonomic systems..
696.32 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB