2025-02-10T05:29:29

This commit is contained in:
2025-02-10 05:29:29 +09:00
parent e00dd1bfbf
commit 6f1a75f466
45 changed files with 69 additions and 145 deletions

62
docs/22_gui.md Normal file
View File

@@ -0,0 +1,62 @@
# GUI - Tk
```bash
sudo apt install perl-tk
```
```perl
#!/usr/bin/perl
use strict;
use utf8;
use Tk;
my $mw = MainWindow->new;
$mw->Label(-text => '안녕!')->pack;
$mw->Button(
-text => '종료',
-command => sub { exit },
)->pack;
MainLoop;
```
https://metacpan.org/pod/distribution/Tk/pod/UserGuide.pod
## Layouts
### pack
### grid
### place
## Widgets
### Button
### Checkbutton
### Radiobutton
### Label
### Entry
### Scrollbar
### Listbox
### Text
### Canvas
### Scale
### Menubutton
### Menu
### Optionmenu
### Frame
### Toplevel