# generated by wxGlade
#
# To get wxPerl visit http://www.wxperl.it
#

use Wx qw[:allclasses];
use strict;

# begin wxGlade: dependencies
# end wxGlade

# begin wxGlade: extracode
import my_panel
# end wxGlade

package MyDialog;

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

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: MyDialog::new
    $style = wxDEFAULT_DIALOG_STYLE
        unless defined $style;

    $self = $self->SUPER::new( $parent, $id, $title, $pos, $size, $style, $name );
    $self->SetTitle("dialog");
    
    $self->{main_sizer} = Wx::BoxSizer->new(wxVERTICAL);
    
    $self->{panel_1} = my_panel.MyPanel->new($self, wxID_ANY);
    $self->{main_sizer}->Add($self->{panel_1}, 1, wxEXPAND, 0);
    
    $self->SetSizer($self->{main_sizer});
    $self->{main_sizer}->Fit($self);
    
    $self->Layout();
    # end wxGlade
    return $self;

}


# end of class MyDialog

1;

