#!/usr/bin/perl -w -- 
#
# generated by wxGlade 034d891cc947+ on Sat Nov  5 21:42:17 2016
#
# To get wxPerl visit http://www.wxperl.it
#

use Wx qw[:allclasses];
use strict;

# begin wxGlade: dependencies
# end wxGlade

# begin wxGlade: extracode
# end wxGlade

package Frame192;

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: Frame192::new
    $self = $self->SUPER::new( $parent, $id, $title, $pos, $size, $style, $name );
    $self->{button_2} = Wx::Button->new($self, wxID_CANCEL, "");
    $self->{button_1} = Wx::Button->new($self, wxID_OK, "");

    $self->__set_properties();
    $self->__do_layout();

    # end wxGlade
    return $self;

}


sub __set_properties {
    my $self = shift;
    # begin wxGlade: Frame192::__set_properties
    $self->SetTitle(_T("frame_1"));
    $self->SetSize(Wx::Size->new(300, 300));
    $self->{button_2}->SetDefault();
    # end wxGlade
}

sub __do_layout {
    my $self = shift;
    # begin wxGlade: Frame192::__do_layout
    $self->{sizer_as_attr} = Wx::FlexGridSizer->new(3, 1, 0, 0);
    $self->{sizer_local} = Wx::BoxSizer->new(wxHORIZONTAL);
    my $label_1 = Wx::StaticText->new($self, wxID_ANY, _T("Just a text"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER);
    $self->{sizer_as_attr}->Add($label_1, 1, wxALIGN_CENTER|wxALL|wxEXPAND|wxSHAPED, 5);
    my $static_line_1 = Wx::StaticLine->new($self, wxID_ANY);
    $self->{sizer_as_attr}->Add($static_line_1, 0, wxALL|wxEXPAND, 5);
    $self->{sizer_local}->Add($self->{button_2}, 0, 0, 0);
    $self->{sizer_local}->Add($self->{button_1}, 0, 0, 0);
    $self->{sizer_as_attr}->Add($self->{sizer_local}, 1, wxALIGN_RIGHT|wxALL, 5);
    $self->SetSizer($self->{sizer_as_attr});
    $self->{sizer_as_attr}->SetSizeHints($self);
    $self->{sizer_as_attr}->AddGrowableRow(0);
    $self->{sizer_as_attr}->AddGrowableCol(0);
    $self->Layout();
    # end wxGlade
}

# end of class Frame192

1;

package MyApp;

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

sub OnInit {
    my( $self ) = shift;

    Wx::InitAllImageHandlers();

    my $Bug192_Frame = Frame192->new();

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

    return 1;
}
# end of class MyApp

package main;

unless(caller){
    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();
}
