Skip to content
This repository
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 57 lines (38 sloc) 1.356 kb

Open the Shoes console window from your app

A little snippet to open the Shoes console window from your app.

# sample51.rb
require File.join(DIR, 'lib/shoes/log')

Shoes.app :width => 200, :height => 200 do
  window{extend Shoes::LogWindow; setup}

  # write your app code below
  background orange..green
  para strong 'This is a test program..', :stroke => white

  info DIR
  button 'debug', :bottom => 0, :left => 0 do
    debug 'hello'
  end
end

sample51.png

sample51.png

This screenshot shows the following.

  • click the button 'debug' twice on your app window

Another way from the Shoes ML.

http://www.mail-archive.com/shoes@code.whytheluckystiff.net/msg02676.html

# sample55.rb
Shoes.app :width => 200, :height => 200 do
  Shoes.show_log
  debug 'open the Shoes console window'

  # write your app code below
  background coral..crimson
  para strong 'This is a test program..', :stroke => white

  info DIR
  button 'debug', :bottom => 0, :left => 0 do
    debug 'hello'
  end
end

sample55.png

sample55.png

Policeman

The sample41.rb and sample55.rb worked well with Shoes-0.r1263

Something went wrong with that request. Please try again.