#!/usr/bin/perl -w -- 
#
# generated by wxGlade
#
# To get wxPerl visit http://www.wxperl.it
#

use Wx;
use strict;

# begin wxGlade: dependencies
# end wxGlade

# begin wxGlade: extracode
# end wxGlade

package Bug183::UI::Frame;

use Wx qw[:everything];
use base qw(Wx::Frame);
use strict;

use Wx::Locale gettext => '_T';
sub new {
    my( $self, $parent, $id, $title, $pos, $size, $style, $name ) = @_;
    $parent = undef              unless defined $parent;
    $id     = -1                 unless defined $id;
    $title  = ""                 unless defined $title;
    $pos    = wxDefaultPosition  unless defined $pos;
    $size   = wxDefaultSize      unless defined $size;
    $name   = ""                 unless defined $name;

    # begin wxGlade: Bug183::UI::Frame::new
    $self = $self->SUPER::new( $parent, $id, $title, $pos, $size, $style, $name );
    $self->SetTitle(_T("frame_1"));
    
    $self->{sizer_1} = Wx::BoxSizer->new(wxVERTICAL);
    
    $self->{label_1} = Wx::StaticText->new($self, wxID_ANY, _T("Just a label"));
    $self->{sizer_1}->Add($self->{label_1}, 1, wxALL|wxEXPAND, 5);
    
    $self->SetSizer($self->{sizer_1});
    $self->{sizer_1}->Fit($self);
    
    $self->Layout();
    # end wxGlade
    return $self;

}


# end of class Bug183::UI::Frame

1;

package Bug173::UI::SomeDialog;

use Wx qw[:everything];
use base qw(Wx::Dialog);
use strict;

use Wx::Locale gettext => '_T';
sub new {
    my( $self, $parent, $id, $title, $pos, $size, $style, $name ) = @_;
    $parent = undef              unless defined $parent;
    $id     = -1                 unless defined $id;
    $title  = ""                 unless defined $title;
    $pos    = wxDefaultPosition  unless defined $pos;
    $size   = wxDefaultSize      unless defined $size;
    $name   = ""                 unless defined $name;

    # begin wxGlade: Bug173::UI::SomeDialog::new
    $self = $self->SUPER::new( $parent, $id, $title, $pos, $size, $style, $name );
    $self->SetTitle(_T("dialog_1"));
    
    $self->{sizer_2} = Wx::BoxSizer->new(wxHORIZONTAL);
    
    $self->{label_2} = Wx::StaticText->new($self, wxID_ANY, _T("Just another label"));
    $self->{sizer_2}->Add($self->{label_2}, 1, wxALL|wxEXPAND, 5);
    
    $self->SetSizer($self->{sizer_2});
    $self->{sizer_2}->Fit($self);
    
    $self->Layout();
    # end wxGlade
    return $self;

}


# end of class Bug173::UI::SomeDialog

1;

package MyApp;

use base qw(Wx::App);
use strict;

sub OnInit {
    my( $self ) = shift;

    Wx::InitAllImageHandlers();

    my $Frame183 = Bug183::UI::Frame->new();

    $self->SetTopWindow($Frame183);
    $Frame183->Show(1);

    return 1;
}
# end of class MyApp

package main;

my $local = Wx::Locale->new("English", "en", "en"); # replace with ??
$local->AddCatalog("app"); # replace with the appropriate catalog name

my $app = MyApp->new();
$app->MainLoop();
