lib/gui/base.rb
def new_child_window
      child = MainWindow.new true, []
      child.parent=self # this should have failed in the PPL
      # make both windows visible by moving the child down and to the right of its parent
      x, y = self.get_location.x, self.get_location.y
      child.set_location(x + 100, y + 100)
      child
    end
# a window that when closed doesn't bring the whole app down
a window that when closed doesn't bring the whole app down
a window that when closed doesn ' t bring the whole app down
def new_child_window
      child = MainWindow.new true, []
      child.parent=self 
      x, y = self.get_location.x, self.get_location.y
      child.set_location(x + 100, y + 100)
      child
    end
def new_child_window child = MainWindow . new true , [ ] child . parent = self x , y = self . get_location . x , self . get_location . y child . set_location ( x + 100 , y + 100 ) child end
a window that when closed doesn't bring the whole app down
a window that when closed doesn ' t bring the whole app down
# this should have failed in the PPL # make both windows visible by moving the child down and to the right of its parent