2 # tkextlib/bwidget/passwddlg.rb
3 # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
7 require 'tkextlib/bwidget.rb'
8 require 'tkextlib/bwidget/messagedlg'
12 class PasswdDlg < Tk::BWidget::MessageDlg
17 class Tk::BWidget::PasswdDlg
18 TkCommandNames = ['PasswdDlg'.freeze].freeze
19 WidgetClassName = 'PasswdDlg'.freeze
20 WidgetClassNames[WidgetClassName] = self
23 super() << 'loginhelptext' << 'loginlabel' << 'logintext' <<
24 'passwdlabel' << 'passwdtext'
26 private :__strval_optkeys
29 super() << 'passwdeditable' << 'homogeneous'
31 private :__boolval_optkeys
33 def __tkvariable_optkeys
34 super() << 'loginhelpvar' << 'logintextvariable' <<
35 'passwdhelpvar' << 'passwdtextvariable'
37 private :__tkvariable_optkeys
40 login, passwd = simplelist(tk_call(self.class::TkCommandNames[0],
41 @path, *hash_kv(@keys)))