forked from saiftynet/GUIDeFATE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGFwx.pm
43 lines (31 loc) · 1.05 KB
/
GFwx.pm
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
package GFwx;
use strict;
use warnings;
our $VERSION = '0.08';
use parent qw(Wx::App); # Inherit from Wx::App
use Exporter 'import';
use GFwxFrame qw<addWidget addVar setScale>;
our @EXPORT_OK = qw<addWidget addVar setScale $frame $winScale $winWidth $winHeight $winTitle>;
our $frame;
our $winX=30;
our $winY=30;
our $winWidth;
our $winHeight;
our $winTitle;
our $winScale=6.5;
sub OnInit
{
my $self=shift;
$frame = GFwxFrame->new( undef, # Parent window
-1, # Window id
$winTitle, # Title
[$winX,$winY], # position [X, Y]
[$winWidth,$winHeight] # size [$winWidth, $winHeight]
);
$self->SetTopWindow($frame); # Define the toplevel window
$frame->Show(1); # Show the frame
}
sub getFrame{
return $frame;
}
1;