Menu

invalid command name ".vTcl.ae.cpd21.03.f3.f._wm.g"

Anonymous
2020-02-07
2020-02-07
  • Anonymous

    Anonymous - 2020-02-07

    I just recently downloaded and started building my gui but suddenly after clicking an attribute this message started and now it keeps comming up. how do I find the problematic widget?
    I clicked the stuck trace and got 2 windows with the following msgs:
    1)
    loading history file ... 0 events added
    buffer line limit: 512 max line length: unlimited
    Main console display active (Tcl8.6.9 / Tk8.6.9)
    (page) 1 %
    2)
    invalid command name ".vTcl.ae.cpd21.03.f3.f._wm.geometry,w"
    while executing
    "[join $vTcl(propmgr,lastAttr) .] configure -relief $vTcl(pr,proprelief)"
    (procedure "vTcl:propmgr:deselect_attr" line 4)
    invoked from within
    "vTcl:propmgr:deselect_attr"
    (procedure "vTcl:propmgr:select_attr" line 3)
    invoked from within
    "vTcl:propmgr:select_attr .vTcl.ae.cpd21.03.f2.f._TCheckbutton -text"
    (command bound to event)

    what do I do?

    other questions:
    how do I move more then 1 widget together?
    can I copy paste widgets?
    can I copy paste text of one widget to another?
    how do I add message boxes and how do I hide or show them while designing?
    can I align the notebook page titles to the right and make them apear from the right side?
    thanks
    ori

     
  • Anonymous

    Anonymous - 2020-02-07

    this message disable my ability to change widgets fonts or any other property that require loading a seperate window

     
  • ori hadar

    ori hadar - 2020-02-07

    please delete this topic since I created the same topic under my account

     
  • Greg Walters

    Greg Walters - 2020-02-07

    As to the error and stack trace issue, all I can tell you is to try to save your project, exit Page and then reload your project ($ page {yourprojectname}.tcl ) . If the error continues, delete the offending widget, save, exit and try to reload.

    As to your other questions...
    How do I move more than 1 widget together?
    Don is working on that. I think it will be available in the next release

    How do I copy/paste widgets?
    Select the widget. Right click and select Copy. Right click somewhere near the place you want to place the copied widget. Right click and select Paste. LEFT click to actually paste the widget.

    Can I copy paste text of one widget to another?
    Select the text for the widget in the attributes editor. With keyboard copy ( Ctrl-C ). Select the other widget in the designer or widget tree. Click the text attributes box in the Attributes editor and on keyboard paste { Ctrl-V ).

    how do I add message boxes and how do I hide or show them while designing?
    I'm guessing you are talking about ToolTips, not message boxes. The Message widget is like a lable, but is designed to support multi-line text. ToolTips are set in the Attributes editor, just above the Geometry section. You can't see them within the designer, only at runtime.

    can I align the notebook page titles to the right and make them apear from the right side?
    No, that's a limitation with the ttk Notebook widget. It has nothing to do with Page.

    can I reverse a check box or radio button? so the box will appear from the right?
    Again, it is a tk/ttk limit and unfortunately the answer is again no. HOWEVER, you can emulate this by creating a frame, placing a label widget and checkbutton side by side and then setting the text of the Checkbutton to "". It's a lot of work and a bit of a kludge, but it would work.

    Greg

     
  • Greg Walters

    Greg Walters - 2020-02-07

    To avoid issues like the one that caused the stacktrace problem, be sure to save your .tcl file often. You don't have to re-generate your python code every time, but save often. If/when you get into this kind of situation, which WILL happen from time to time, you can simply close Page and reload without loosing too much.

     
  • ori hadar

    ori hadar - 2020-02-07

    Hi Greg
    Thanks for the prompt reply.
    you wrote: "If the error continues, delete the offending widget, save, exit and try to reload."
    how do I know which widget is: .vTcl.ae.cpd21.03.f3.f._wm.g?

    Thanks for the copy/paste widget explenation, you can assume I tried it but the last click is not intuitive, you expect the wisget to appear as you click the Paste.

    The Ctrl+C and Ctrl+V for copying the text from widget to widget you can assume I tried it all before asking but this doesn't work.

    I called it message boxes but what I meant was other windows that are not displayed at all times. do I need another project for each window displayed, it can be just a window with message and some values displayed as a result of user action with just a close button at the bottom.
    There are many like this in any GUI program and I want to understand if each one should be a seperated project or I can create all windows in one project.

    regarding the checkboxes anyone who works from right to left has done your solution ever since his first CB but since FrameLable do have the ancor option that change the position of the label I thought maybe the CB or RB has something alike
    thanks alot
    Ori

     
  • Greg Walters

    Greg Walters - 2020-02-07

    how do I know which widget is?
    Well, you really don't. If you had been saving often, you could start with the last widget and work your way back until you found it. Sorry, I don't have a better answer.

    but the last click is not intuitive, you expect the wisget to appear as you click the Paste.
    I understand. Visual TCL doesn't always work the way everything else does. It's just a learning thing.

    I just verified that Ctrl+C / Ctrl+V does in fact work. You have to copy the text from the attribute editor by selecting it, then click on the other widget, click on the text box in the attributes editor again for the second widget then do the Ctrl+V

    Multiple forms (windows) are all separate projects. If you have two forms you want to use, you have to create both in Page. There are examples of how to do that in the docs folder.

    Sorry. again, that is a limitation of tk/ttk widgets. You could look on the internet for tk/ttk widgets that would do that and use the Page custom control to put it in the form.

    Greg

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.