wxPerl/Ubuntu12.04にwxPerlの環境をインストールしてみた
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
#navi(../)
* Ubuntu12.04にwxPerlの環境をインストールしてみた [#jd137...
Ubuntu12.04にwxPerlの環境をインストールしてみたときの備忘...
#contents
#htmlinsert(ll_ads_top.html)
* 関連記事 [#m081bbf2]
-[[Debian 7 WheezyにwxPythonをインストールしてみた>wxPyth...
-[[Ubuntu12.04にwxPythonをインストールしてみた>wxPython/U...
-[[CentOS6にwxPythonをインストールしてみた>wxPython/CentO...
* wxPerlのインストール [#o43b4a51]
以下のコマンドでwxPerl関連のパッケージを検索しインストー...
-wxperlのパッケージを検索。
$ apt-cache search wxperl
libwx-perl - interface to wxWidgets cross-platform GUI t...
上記の検索結果からlibwx-perlをインストール。
$ sudo apt-get install libwx-perl
* wxPerlでHello world [#w532b0f0]
以下URLのサンプルコードを使用しwxPerlでHello worldを実行...
http://examples.wxperl.it/2013/03/hello-world.html
#ref(wxHello.pl)
#!/usr/bin/perl
use strict;
use warnings;
use Wx;
package MyApp;
use base 'Wx::App';
sub OnInit {
my( $self ) = @_;
# create a new frame (a frame is a top level window)
my $frame = Wx::Frame->new(
undef, # parent window
-1, # ID -1 means any
'Hello World', # title
[-1, -1], # default position
[250, 150], # size
);
$frame->Show( 1 );
return 1;
}
package main;
my $app = MyApp->new;
$app->MainLoop;
実行結果~
$ chmod +x wxHello.pl
$ ./wxHello.pl
#ref(01.gif)
以上、Ubuntu12.04でwxPerlをインストールした時の備忘録です...
//#htmlinsert(ll_ads_btm.html)
終了行:
#navi(../)
* Ubuntu12.04にwxPerlの環境をインストールしてみた [#jd137...
Ubuntu12.04にwxPerlの環境をインストールしてみたときの備忘...
#contents
#htmlinsert(ll_ads_top.html)
* 関連記事 [#m081bbf2]
-[[Debian 7 WheezyにwxPythonをインストールしてみた>wxPyth...
-[[Ubuntu12.04にwxPythonをインストールしてみた>wxPython/U...
-[[CentOS6にwxPythonをインストールしてみた>wxPython/CentO...
* wxPerlのインストール [#o43b4a51]
以下のコマンドでwxPerl関連のパッケージを検索しインストー...
-wxperlのパッケージを検索。
$ apt-cache search wxperl
libwx-perl - interface to wxWidgets cross-platform GUI t...
上記の検索結果からlibwx-perlをインストール。
$ sudo apt-get install libwx-perl
* wxPerlでHello world [#w532b0f0]
以下URLのサンプルコードを使用しwxPerlでHello worldを実行...
http://examples.wxperl.it/2013/03/hello-world.html
#ref(wxHello.pl)
#!/usr/bin/perl
use strict;
use warnings;
use Wx;
package MyApp;
use base 'Wx::App';
sub OnInit {
my( $self ) = @_;
# create a new frame (a frame is a top level window)
my $frame = Wx::Frame->new(
undef, # parent window
-1, # ID -1 means any
'Hello World', # title
[-1, -1], # default position
[250, 150], # size
);
$frame->Show( 1 );
return 1;
}
package main;
my $app = MyApp->new;
$app->MainLoop;
実行結果~
$ chmod +x wxHello.pl
$ ./wxHello.pl
#ref(01.gif)
以上、Ubuntu12.04でwxPerlをインストールした時の備忘録です...
//#htmlinsert(ll_ads_btm.html)
ページ名: