Menu

Python console doesn't show up

2022-05-31
2022-06-01
  • Jean-Luc Garnier

    Hi,
    I'm giving a try to PAGE 7.4 + Python 3.10 on Windows 10 and I've created a basic GUI with no effort. Unfortunately, when I hit CTRL-P to generate the corresponding code, the Python console doesn't show up, so I get no code.
    Any clue on what's missing here?
    Thanks in advance for any help!

     
  • Anonymous

    Anonymous - 2022-05-31

    in Page go under Page preferences/basics ....under python command it should contain: python3
    Also do you have python3 installed on your system (sounds like you do_?

    Forget about using ctrl+p....you have to be active in the right place in all of the regions for it to work ...go to the page menu and select it from page's Gen_Python drop down ...there will be no doubt you are in the correct place and something will happen.

     
    • Jean-Luc Garnier

      Thanks for the quick answer! I've correected the Preferences and the console now shows up! Case solved, thanks a lot!

       
  • Don Rozenberg

    Don Rozenberg - 2022-06-01

    I have a couple of questions.
    1. Have you been able to generate code for any previous project?
    2. Have you used PAGE with dual monitors and moved the Python console off the main monitor?
    3. Were you successful in saving the project? If so could you send me the Tcl project file?
    4. Do you get the problem if you just open PAGE and immediately try to generate The GUI module. If the problem persists, one thing to try is to delete or rename the file ".pagerc" in your home directly and try again. If it works be sure to quit which will save a new ".pagerc" file.

     
    • Jean-Luc Garnier

      Hi Don, thanks for the quick answer!

      As I just posted above, the issue was due to a wrong default config: I've updated the Preferences from "python" to "python3" and the console now shows up.

      I now have some error messages when running the code, such as:

      invalid command name ".vTcl.gui_console.tPa42.f2.01"
          while executing
      "$pc_output delete 1.0 end"
          (procedure "vTcl:python_run" line 9)
          invoked from within
      "vTcl:python_run $base $prefix"
          (procedure "vTcl:python_quick_run" line 11)
          invoked from within
      "vTcl:python_quick_run .vTcl.supp_console supp"
          invoked from within
      ".vTcl.supp_console.butframe.but34 invoke"
          ("uplevel" body line 1)
          invoked from within
      "uplevel #0 [list $w invoke]"
          (procedure "tk::ButtonUp" line 24)
          invoked from within
      "tk::ButtonUp .vTcl.supp_console.butframe.but34"
          (command bound to event)
      

      and will investigate into the configuration...

      Thanks again for your help!

       

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.