Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set vTcl(timestamp) ""
- if {!$vTcl(borrow)} {
- set vTcl(actual_gui_bg) #f5deb3
- set vTcl(actual_gui_fg) #000000
- set vTcl(actual_gui_menu_bg) #d9d9d9
- set vTcl(actual_gui_menu_fg) #000000
- set vTcl(complement_color) #b2c9f4
- set vTcl(analog_color_p) #eaf4b2
- set vTcl(analog_color_m) #f4bcb2
- set vTcl(active_fg) #111111
- set vTcl(actual_gui_menu_active_bg) #f4bcb2
- set vTcl(active_menu_fg) #000000
- }
- #################################
- #LIBRARY PROCEDURES
- #
- if {[info exists vTcl(sourcing)]} {
- proc vTcl:project:info {} {
- set base .top37
- global vTcl
- set base $vTcl(btop)
- if {$base == ""} {
- set base .top37
- }
- namespace eval ::widgets::$base {
- set dflt,origin 0
- set runvisible 1
- }
- namespace eval ::widgets_bindings {
- set tagslist _TopLevel
- }
- namespace eval ::vTcl::modules::main {
- set procs {
- }
- set compounds {
- }
- set projectType single
- }
- }
- }
- #################################
- # GENERATED GUI PROCEDURES
- #
- proc vTclWindow.top37 {base} {
- if {$base == ""} {
- set base .top37
- }
- if {[winfo exists $base]} {
- wm deiconify $base; return
- }
- set top $base
- ###################
- # CREATING WIDGETS
- ###################
- vTcl::widgets::core::toplevel::createCmd $top -class Toplevel
- -background {#d9d9d9} -height 0 -highlightbackground {#d9d9d9}
- -highlightcolor black
- wm focusmodel $top passive
- wm geometry $top 600x448+706+242
- update
- # set in toplevel.wgt.
- global vTcl
- global img_list
- set vTcl(save,dflt,origin) 0
- wm maxsize $top 3282 1053
- wm minsize $top 120 1
- wm overrideredirect $top 0
- wm resizable $top 1 1
- wm deiconify $top
- wm title $top "Kelly Service 2fa Installation"
- vTcl:DefineAlias "$top" "Toplevel2" vTcl:Toplevel:WidgetProc "" 1
- message $top.mes39
- -background {#d9d9d9} -foreground {#000000}
- -highlightbackground {#d9d9d9} -highlightcolor black
- -text {Welcome to 2FA Installation} -width 170
- vTcl:DefineAlias "$top.mes39" "Message1" vTcl:WidgetProc "Toplevel2" 1
- button $top.but40
- -activebackground {#d9d9d9} -activeforeground {#000000}
- -background {#d9d9d9}
- -command {lambda: sub.call('C://Test5.bat')).pack()}
- -disabledforeground {#a3a3a3} -foreground {#000000}
- -highlightbackground {#d9d9d9} -highlightcolor black -pady 0
- -relief raised -text {Initial Installation}
- button $top.but41
- -activebackground {#d9d9d9} -activeforeground {#000000}
- -background {#d9d9d9} -disabledforeground {#a3a3a3}
- -foreground {#000000} -highlightbackground {#d9d9d9}
- -highlightcolor black -pady 0 -text {Change Authentication Method}
- vTcl:DefineAlias "$top.but41" "Button2" vTcl:WidgetProc "Toplevel2" 1
- button $top.but42
- -activebackground {#d9d9d9} -activeforeground {#000000}
- -background {#d9d9d9} -disabledforeground {#a3a3a3}
- -foreground {#000000} -highlightbackground {#d9d9d9}
- -highlightcolor black -pady 0 -text {Clear Credentials Only}
- vTcl:DefineAlias "$top.but42" "Button3" vTcl:WidgetProc "Toplevel2" 1
- vTcl::widgets::ttk::custom::CreateCmd $top.cus50
- -background {#d9d9d9} -height 75 -highlightbackground {#d9d9d9}
- -highlightcolor black -width 125
- vTcl:DefineAlias "$top.cus50" "Custom1" vTcl:WidgetProc "Toplevel2" 1
- ###################
- # SETTING GEOMETRY
- ###################
- place $top.mes39
- -in $top -x 190 -y 0 -width 170 -relwidth 0 -height 53 -relheight 0
- -anchor nw -bordermode ignore
- place $top.but40
- -in $top -x 190 -y 200 -anchor nw -bordermode ignore
- place $top.but41
- -in $top -x 130 -y 260 -width 227 -relwidth 0 -height 24 -relheight 0
- -anchor nw -bordermode ignore
- place $top.but42
- -in $top -x 200 -y 280 -width 127 -relwidth 0 -height 24 -relheight 0
- -anchor nw -bordermode ignore
- place $top.cus50
- -in $top -x 60 -y 70 -anchor nw -bordermode ignore
- vTcl:FireEvent $base <<Ready>>
- }
- #############################################################################
- ## Binding tag: _TopLevel
- bind "_TopLevel" <<Create>> {
- if {![info exists _topcount]} {set _topcount 0}; incr _topcount
- }
- bind "_TopLevel" <<DeleteWindow>> {
- if {[set ::%W::_modal]} {
- vTcl:Toplevel:WidgetProc %W endmodal
- } else {
- destroy %W; if {$_topcount == 0} {exit}
- }
- }
- bind "_TopLevel" <Destroy> {
- if {[winfo toplevel %W] == "%W"} {incr _topcount -1}
- }
- set btop ""
- if {$vTcl(borrow)} {
- set btop .bor[expr int([expr rand() * 100])]
- while {[lsearch $btop $vTcl(tops)] != -1} {
- set btop .bor[expr int([expr rand() * 100])]
- }
- }
- set vTcl(btop) $btop
- Window show .
- Window show .top37 $btop
- if {$vTcl(borrow)} {
- $btop configure -background plum
Add Comment
Please, Sign In to add comment