File: gridbug

package info (click to toggle)
perl-tk 1%3A804.033-2
  • links: PTS
  • area: main
  • in suites: buster
  • size: 34,724 kB
  • ctags: 37,174
  • sloc: ansic: 349,541; perl: 52,192; sh: 17,904; makefile: 5,732; asm: 3,565; ada: 1,681; pascal: 1,089; cpp: 1,006; yacc: 883; cs: 879
file content (72 lines) | stat: -rw-r--r-- 1,500 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/usr/local/bin/perl -w
use Tk;
use Carp;
$top = MainWindow->new();
$top->title("STest23289 test");

$SIG{'__DIE__'} = \&confess;

# interface generated by SpecTcl version 1.0 from STest21872.ui
# Experimental pTk version using the gridbag geometry manager

sub STest23289_ui {
	my($root) = @_;

	# $root->grid;  # stolen from npuz but does not help here

	my($text_1) = $root->Text (
		-background => '#d9d9d9',
		-cursor => undef,
		-foreground => 'Black',
		-height => '1',
		-highlightbackground => '#d9d9d9',
		-width => '1'
	);
	my($listbox_1) = $root->Listbox (
		-background => '#d9d9d9',
		-foreground => 'Black',
		-height => '0',
		-highlightbackground => '#d9d9d9',
		-width => '0'
	);
	my($message_1) = $root->Message (
		-background => '#d9d9d9',
		-foreground => 'Black',
		-highlightbackground => '#d9d9d9',
		-text => 'message'
	);

	# Geometry management

	$text_1->grid(
		-in => $root,
		-column => '2',
		-row => '1',
		-sticky => 'nesw'
	);

	$listbox_1->grid(
		-in => $root,
		-column => '1',
		-row => '2',
		-sticky => 'nesw'
	);

	$message_1->grid(
		-in => $root,
		-column => '2',
		-row => '3'
	);

	# Resize behavior management

	$root->gridRowconfigure(1, -weight => 0, -minsize => 30);
	$root->gridRowconfigure(2, -weight => 0, -minsize => 30);
	$root->gridRowconfigure(3, -weight => 0, -minsize => 30);
	$root->gridColumnconfigure(1, -weight => 0, -minsize => 30);
	$root->gridColumnconfigure(2, -weight => 0, -minsize => 30);
}
STest23289_ui $top;
Tk::MainLoop;