If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2019-09-22
page ver 4.25.1 invalid command name "try" error while generating python GUI
after generate support module
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2019-11-17
i got this below error while creating sample gui......using PAGE but didnt work
invalid command name "try"
while executing
"try {
vTcl:generate_python $window
} trap {401} {errmsg} {
set err_split [split $errmsg]
set wid [lrange $err_split 2 2]
..."
(procedure "vTcl:generate_python_UI" line 76)
invoked from within
"vTcl:generate_python_UI"
(menu invoke)
anysolution?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Also, what version of Tcl/Tk are you using? That snippit of code is executed every time some using PAGE generates a GUI.py file.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2019-11-18
tcl version 8.5
page version 4.26
os version windows 10
Generated by PAGE version 4.26
in conjunction with Tcl version 8.5
Nov 17, 2019 08:50:01 PM IST platform: Windows NT
set vTcl(timestamp) ""
if {!$vTcl(borrow) && !$vTcl(template)} {
set vTcl(actual_gui_bg) #d9d9d9
set vTcl(actual_gui_fg) #000000
set vTcl(actual_gui_analog) #ececec
set vTcl(actual_gui_menu_analog) #ececec
set vTcl(actual_gui_menu_bg) #d9d9d9
set vTcl(actual_gui_menu_fg) #000000
set vTcl(complement_color) #d9d9d9
set vTcl(analog_color_p) #d9d9d9
set vTcl(analog_color_m) #ececec
set vTcl(active_fg) #000000
set vTcl(actual_gui_menu_active_bg) #ececec
set vTcl(active_menu_fg) #000000
}
I'm pretty sure that the issue is that you are using Tcl/Tk 8.5. Page requires 8.6.
Give updating your Tck/Tk to 8.6 and let us know if that solves the problem.
Greg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2019-12-11
sorry where is 8.6
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Just a note here. ActiveState requires you to set up an account to get the download. It's free. It's just a bit of a pain to get through.
Worst case (and I don't suggest you do this) you can use Anaconda3, since it comes with a small version of TCL built in. Again, I don't suggest you do this since the Anaconda version of TCL doesn't always play nice, but it will get you up and running.
Greg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2020-03-18
Hi, I tried saving creating the GUI code thru Gen_Python>Generate Python GUI and I encountered an error invalid command name "try"
I am using these programs for my coding :
PAGE 5.0.3.
ActiveState ActiveTcl 8.5.18.0
Anaconda3
and my computer is a 32-bit Windows 7
Can you help me how to resolve this error? Thank you!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Your problem stems from the fact that you are using TCL 8.5. Page requires TCL 8.6. Your other problem is that ActiveState no longer offers a 32 bit version of 8.6.
page ver 4.25.1 invalid command name "try" error while generating python GUI
after generate support module
i got this below error while creating sample gui......using PAGE but didnt work
invalid command name "try"
while executing
"try {
vTcl:generate_python $window
} trap {401} {errmsg} {
set err_split [split $errmsg]
set wid [lrange $err_split 2 2]
..."
(procedure "vTcl:generate_python_UI" line 76)
invoked from within
"vTcl:generate_python_UI"
(menu invoke)
To be able to help, I would need some information first...
This information allows Don and/or I to zero in on the issue.
Greg
Also, what version of Tcl/Tk are you using? That snippit of code is executed every time some using PAGE generates a GUI.py file.
tcl version 8.5
page version 4.26
os version windows 10
Generated by PAGE version 4.26
in conjunction with Tcl version 8.5
Nov 17, 2019 08:50:01 PM IST platform: Windows NT
set vTcl(timestamp) ""
if {!$vTcl(borrow) && !$vTcl(template)} {
set vTcl(actual_gui_bg) #d9d9d9
set vTcl(actual_gui_fg) #000000
set vTcl(actual_gui_analog) #ececec
set vTcl(actual_gui_menu_analog) #ececec
set vTcl(actual_gui_menu_bg) #d9d9d9
set vTcl(actual_gui_menu_fg) #000000
set vTcl(complement_color) #d9d9d9
set vTcl(analog_color_p) #d9d9d9
set vTcl(analog_color_m) #ececec
set vTcl(active_fg) #000000
set vTcl(actual_gui_menu_active_bg) #ececec
set vTcl(active_menu_fg) #000000
}
proc vTclWindow.top42 {base} {
global vTcl
if {$base == ""} {
set base .top42
}
if {[winfo exists $base]} {
wm deiconify $base; return
}
set top $base
###################
# CREATING WIDGETS
###################
vTcl::widgets::core::toplevel::createCmd $top -class Toplevel \
-background $vTcl(actual_gui_bg)
wm focusmodel $top passive
wm geometry $top 600x450+350+144
update
# set in toplevel.wgt.
global vTcl
global img_list
set vTcl(save,dflt,origin) 0
wm maxsize $top 1354 733
wm minsize $top 124 1
wm overrideredirect $top 0
wm resizable $top 1 1
wm deiconify $top
wm title $top "Firstprog"
vTcl:DefineAlias "$top" "MyFrmae" vTcl:Toplevel:WidgetProc "" 1
button $top.but43 \
-activebackground #e1e8f7 -activeforeground #000000 \
-background $vTcl(actual_gui_bg) -command exit() \
-disabledforeground #a3a3a3 -font TkDefaultFont \
-foreground $vTcl(actual_gui_fg) \
-highlightbackground $vTcl(actual_gui_bg) -highlightcolor black \
-pady 0 -text Exit
vTcl:DefineAlias "$top.but43" "btnButton" vTcl:WidgetProc "MyFrmae" 1
###################
# SETTING GEOMETRY
###################
place $top.but43 \
-in $top -x 250 -y 240 -width 177 -relwidth 0 -height 24 -relheight 0 \
-anchor nw -bordermode ignore
}
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 .top42 $btop
if {$vTcl(borrow)} {
$btop configure -background plum
}
I'm pretty sure that the issue is that you are using Tcl/Tk 8.5. Page requires 8.6.
Give updating your Tck/Tk to 8.6 and let us know if that solves the problem.
Greg
sorry where is 8.6
Since you are running Windows 10, you need to get ActiveState Tcl from
https://www.activestate.com/products/tcl/downloads/
I'm assuming you are running 64 bit windows. If you are running 32 bit Windows, you will need a different version of TCL since ActiveState doesn't support 32 bit any longer. See this post...
https://sourceforge.net/p/page/discussion/general/thread/d959f82e0a/
Just a note here. ActiveState requires you to set up an account to get the download. It's free. It's just a bit of a pain to get through.
Worst case (and I don't suggest you do this) you can use Anaconda3, since it comes with a small version of TCL built in. Again, I don't suggest you do this since the Anaconda version of TCL doesn't always play nice, but it will get you up and running.
Greg
Hi, I tried saving creating the GUI code thru Gen_Python>Generate Python GUI and I encountered an error invalid command name "try"
I am using these programs for my coding :
Can you help me how to resolve this error? Thank you!
Your problem stems from the fact that you are using TCL 8.5. Page requires TCL 8.6. Your other problem is that ActiveState no longer offers a 32 bit version of 8.6.
You can try https://www.magicsplat.com/tcl-installer/index.html or http://www.bawt.tcl3d.org/download.html#tclbi in order to get a 32 bit version.