Menu

wrong gui file if changing GUI default font size in Preferences

Anonymous
2022-01-27
2022-01-31
  • Anonymous

    Anonymous - 2022-01-27

    Page 7.1 on Windows 10 with python 3.9
    Reproduce:
    1. File -> Preferences -> Fonts -> GUI default font -> change Segeo UI font size from 12 to 14 and save.
    2. Create some widget.
    3. Generate python GUI.
    Now the GUI file has the line below which is wrong.

            -family {Segoe UI} -size 14 -weight normal -slant roman "  \
                "-underline 0 -overstrike 0 = "TkDefaultFont"
    
     
  • Greg Walters

    Greg Walters - 2022-01-27

    I'm sorry, but I'm confused.

    You set the Default GUI font to 14 Segeo. You save the preference. Now when you see the font, which states what you changed it to, you say it's wrong.

    What's the problem?

     
  • Anonymous

    Anonymous - 2022-01-27

    Step 3 like below:
    3.1 Gen_Python -> Generate Python GUI and save -> get file xxx.py
    3.2 the wrong code is in xxx.py

     
  • Greg Walters

    Greg Walters - 2022-01-27

    I guess I'm too stupid to understand your problem.
    I'll notify Don to try to help you.

     
  • Anonymous

    Anonymous - 2022-01-27

    I'm sorry. It may be that I didn't express it clearly enough.
    Reproduce:
    1. File -> Preferences -> Fonts -> GUI default font -> change Segeo UI font size from 12 to 14 -> Press √ (Apply changes and close dialog)
    2. Create a TLabel (a Themed widget)
    3. Gen_Python -> Generate Python GUI and save. (get unknown.py)
    4. Gen_Python -> Generate Support Module and save. (get unknown_support.py)
    5. open cmd window and input: python unknown.py and press Enter. The output is
    File "unknown.py", line 24
    -family {Segoe UI} -size 16 -weight normal -slant roman " \
    ^
    SyntaxError: invalid syntax

    Note:
    If the user do the step 1 and close Page. (The font size setting changed. ) And open Page again. This time not change the font size. And then do step 2-5. The problem will not reproduce.

     
  • Don Rozenberg

    Don Rozenberg - 2022-01-27

    I think that changing a font preference and then continuing is leaving PAGE in some weird internal state. I recommend that if you want to change a preference you enter PAGE, update the preferences, and quit page. That way there is a better chance that things will be better initialized. That recommendation will appear in bold in the documentation in the next release.

     
  • Anonymous

    Anonymous - 2022-01-31

    Hello ,
    i cant Select muI tiple widgets . Page 7.1
    Button-2 dont work.
    thanks

     
  • Greg Walters

    Greg Walters - 2022-01-31

    Are you sure you are using the correct button? Normally Button-2 is the middle mouse button.

     
  • Anonymous

    Anonymous - 2022-01-31

    oups il am confuse. sorry and tkank you vers much

     
  • Greg Walters

    Greg Walters - 2022-01-31

    No worries. It happens to us all at one time or another. I'm just glad it works for you.

    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.