fx/groupbox.rb
# Create the main window and show it
Create the main window and show it
Create the main window and show it
def create
    super
    show(PLACEMENT_SCREEN)
    @clockThread = Thread.new(@clockLabel) { |clockLabel|
      while true
        clockLabel.text = Time.now.strftime("%I:%M:%S %p")
        sleep(1)
      end
    }
  end
def create super show ( PLACEMENT_SCREEN ) @clockThread = Thread . new ( @clockLabel ) { | clockLabel | while true clockLabel . text = Time . now . strftime ( "%I:%M:%S %p" ) sleep ( 1 ) end } end
Create the main window and show it
Create the main window and show it
# Create a thread to update the clock