4 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
...
$X1 = $main->rootx();
$Y1 = $main->rooty();
$maussubmain = $main->Toplevel;
my $geom = '=180x25+' . ($X+$X1) . '+' . ($Y + $Y1+60);
$maussubmain->geometry($geom);
$maussubmain->resizable(0,0);
$maussubmain->iconname('Sync-Richtung');
$maussubmain->title($tmp);
my $but_mausr1 =$maussubmain->Button (-text => " <= ",
-command => sub{
$msm{$tmp} = 2;
$file_list->itemConfigure($selected[0], 2, -text => "\[<=\]");
$main->update();
$maussubmain->destroy; },
) -> pack(-side=>'left', -anchor=>'w', -padx => '2p');
...
$maussubmain->overrideredirect(1);
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
...
$hlist->bind( '<Button-3>', sub {init_menu()});
...
sub init_menu
{
my $menu = $hlist->Menu(-tearoff => 0);
$menu->add('command',
-label => "delete",
-command => sub{delete_entry();}
);
$menu->Popup(-popover => 'cursor');
}
sub delete_entry
{
$hlist->itemDelete( $hlist->selectionGet, 1);
}
4 Einträge, 1 Seite |