]> jspc29.x-matter.uni-frankfurt.de Git - coral.git/commitdiff
fixes
authorMichael Wiebusch <antiquark@gmx.net>
Thu, 21 Aug 2014 12:30:06 +0000 (14:30 +0200)
committerMichael Wiebusch <antiquark@gmx.net>
Thu, 21 Aug 2014 12:30:06 +0000 (14:30 +0200)
user_interface/gui.pl

index 75396979d83a0bf853d322d5f69f94a01b60a7dd..bc0377945c6e41d32598decfce630990783640b9 100755 (executable)
@@ -43,7 +43,7 @@ $hbox->pack_start($plot_button, FALSE, FALSE, 0);
 my $clear_button = Gtk2::Button->new('_Clear');
 $hbox->pack_start($clear_button, FALSE, FALSE, 0);
 
-my $windowLength_entry = Gtk2::Entry->new;
+my $windowLength_entry = Gtk2::Entry->new('100us');
 $hbox->pack_start($windowLength_entry, FALSE, FALSE, 0);
 
 my $setWindowLength_button = Gtk2::Button->new('_Set window length');
@@ -101,6 +101,7 @@ $plot_button->signal_connect( clicked => sub {
 $clear_button->signal_connect( clicked => sub {
 
   execute("./analyzer.pl --clear");
+  $image->clear;
   
 });
 
@@ -108,6 +109,7 @@ $setWindowLength_button->signal_connect( clicked => sub {
   my $windowLength = $windowLength_entry->get_text();
   execute("./analyzer.pl --window $windowLength");
 #   $label->set_text($windowLength_entry->get_text());
+  execute("./analyzer.pl --clear");
   
 });