librelist archives

« back to archive

hide window / widget

hide window / widget

From:
J. Kaiden
Date:
2011-08-13 @ 22:56
hey folks,

  another question about #window behavior...

  so... i create a window, and check the methods - i see #hide, #hidden=,
and #style.  then i do this:

#####
class ExampleWindow < Shoes::Widget
window title: "Example" do
para "You Shouldn't See Me!"
end
end

Shoes.app do
win  = example_window
win.hide
end
#####

  and i see the window that i shouldn't...  i've also tried:

win.hidden = true

  and

win.style(hidden: true)

  but no luck.  what's going on here?  shouldn't the #hide method hide the
window?

  thanks for any ideas,

  - j

Re: hide window / widget

From:
J. Kaiden
Date:
2011-08-14 @ 11:26
hmmm,

  tried this too:

#####
class ExampleWindow < Shoes::Widget
attr_accessor :win
def initialize
@win = window title: "Example" do
para "You Shouldn't See Me!"
end
end
end

Shoes.app do
ew  = example_window
ew.win.hide
end
#####

  but no luck either - in fact "ew.win" has no #hide, #hidden, #style, or
#show methods...



  - j

Re: [shoes] Re: hide window / widget

From:
ashbb
Date:
2011-08-15 @ 03:45
Hi J,

You can show/hide slots and elements on windows.
But can't show/hide windows themselves in Shoes, sorry.

ps. In Green Shoes, Regis wrote a great code:
http://regisaubarede.posterous.com/green-shoes-systray-application

ashbb

Re: [shoes] Re: hide window / widget

From:
J. Kaiden
Date:
2011-08-15 @ 11:56
>
> You can show/hide slots and elements on windows.
> But can't show/hide windows themselves in Shoes, sorry.
>
>   ahh, that explains it....  thanks


> ps. In Green Shoes, Regis wrote a great code:
> http://regisaubarede.posterous.com/green-shoes-systray-application
>
>   saw this the other day - it looks great!  unfortunately i'm still unable
to try Green Shoes as i can't get gtk 1.0 to install properly...
http://www.ruby-forum.com/topic/2236450#new  :(

  looking forward to trying it out as soon as i can...

  thanks again,

  - j