class TkWindow - tk-0.2.0 Documentation

# class TkWindow

### Public Instance Methods

cursor_propagate(cursor) click to toggle source

    # File lib/tkextlib/tcllib/cursor.rb, line 56
    def cursor_propagate(cursor)
      # Sets the cursor for self and all its descendants to cursor.
      #tk_call_without_enc('::cursor::propagate', @path, cursor)
      Tk::Tcllib::Cursor.cursor_propagate(self, cursor)
    end

cursor_restore(cursor = None) click to toggle source

    # File lib/tkextlib/tcllib/cursor.rb, line 61
    def cursor_restore(cursor = None)
      # Restore the original or previously set cursor for self and all its
      # descendants. If cursor is specified, that will be used if on any
      # widget that did not have a preset cursor (set by a previous call
      # to TkWindow#cursor_propagate).
      #tk_call_without_enc('::cursor::restore', @path, cursor)
      Tk::Tcllib::Cursor.cursor_restore(self, cursor)
    end

tktrans_get_image() click to toggle source

    # File lib/tkextlib/tktrans/tktrans.rb, line 37
    def tktrans_get_image()
      tk_send('tktrans::setwidget', @path)
    end

tktrans_set_image(img) click to toggle source

    # File lib/tkextlib/tktrans/tktrans.rb, line 33
    def tktrans_set_image(img)
      tk_send('tktrans::setwidget', @path, img)
      self
    end