Sha256: 02beecfb9eb9391ace6364ccc4246fb80495f48da1820fa9357921141b2b3628
Contents?: true
Size: 905 Bytes
Versions: 1
Compression:
Stored size: 905 Bytes
Contents
# encoding: utf-8 require 'gtk2' module JLDrill::Gtk class GtkEnterFilename < Gtk::FileChooserDialog attr_reader :resp def initialize(directory,mainWindow) super("Save File", mainWindow, Gtk::FileChooser::ACTION_SAVE, nil, [Gtk::Stock::CANCEL, Gtk::Dialog::RESPONSE_CANCEL], [Gtk::Stock::SAVE, Gtk::Dialog::RESPONSE_ACCEPT]) @resp = Gtk::Dialog::RESPONSE_CANCEL self.current_folder = "/home/mike/Desktop" print self.filename print "\n" print self.current_folder print "\n" end def run @resp = super() if @resp == Gtk::Dialog::RESPONSE_ACCEPT return filename else return "" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jldrill-0.6.0.1 | lib/jldrill/oldUI/GtkEnterFilename.rb |