Sha256: a12cb9c11b575f1435fd313cbc76e2ad339a08bcb9be366f09a0d7ad3cdfcf8f
Contents?: true
Size: 1009 Bytes
Versions: 1
Compression:
Stored size: 1009 Bytes
Contents
# encoding: utf-8 require 'gtk2' module JLDrill::Gtk class Popup attr_reader :character, :x, :y def initialize(character, mainWindow, x, y) @x = x @y = y @character = character @popup = Gtk::Window.new(Gtk::Window::POPUP) @popup.set_transient_for(mainWindow) @popup.set_destroy_with_parent(true) @popup.set_window_position(Gtk::Window::POS_NONE) @hbox = Gtk::HBox.new @popup.add(@hbox) end def display @popup.move(x, y) @popup.show_all end def close @popup.destroy end def showBusy(bool) if bool @popup.window.set_cursor(Gdk::Cursor.new(Gdk::Cursor::WATCH)) else @popup.window.set_cursor(nil) end Gdk::flush() end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jldrill-0.6.0.1 | lib/jldrill/views/gtk/widgets/Popup.rb |