Menu

page 8.0 not indenting

Anonymous
2024-10-05
2024-10-07
  • Anonymous

    Anonymous - 2024-10-05

    the page 8.0 generated file is not indenting (the def) or top.geom in def, and thus causing an error
    class Toplevel1:
    def init(self, top=None):
    '''This class configures and populates the toplevel window.
    top is the toplevel containing window.'''

    top.geometry("757x516+184+84")

     
  • Greg Walters

    Greg Walters - 2024-10-05

    Is this repeatable?
    What Operating system are you using?
    Would you zip the .tcl file and attach it so I can try to figure out what's happening?

    Sincerely,
    Greg

     
  • Anonymous

    Anonymous - 2024-10-06

    *** /usr/bin/env python3
    coding: utf-8 --
    Support module generated by PAGE version 8.0
    in conjunction with Tcl version 8.6
    Oct 05, 2024 01:22:36 AM EDT platform: Linux*

    for support file example it will create
    if name == 'main':
    pinpad.start_up()

    with no indent of pinpad

    also in support, no indent
    def main(*args):
    '''Main entry point for the application.'''
    global root
    root = tk.Tk()
    root.protocol( 'WM_DELETE_WINDOW' , root.destroy)
    etc

    Other items in both files ARE indented when generated by page

    Fixing the indents in both the gui (a huge block of hundreds of lines needed indent) & support files makes it work!

     
  • Greg Walters

    Greg Walters - 2024-10-06

    I truly do not understand why you are having all these problems.

    I also can not understand why you seem to refuse to provide the information in the simple requests that I made in my first response in this thread . So, I'll ask them again.

    Is this problem repeatable. I'm guessing the answer is no, since the other two issue reports you have made said nothing of this problem. In fact, no one has reported this problem is over 10 months of PAGE 8.0. But, i'll try to keep an open mind.

    Second. What operating system are you using? This is also a simple request. It's obvious that you are running Linux of some sort, but since there are MANY distributions (Ubuntu, Debian, Fedora, Raspberry Pi OS, Arch, etc.) this information is VERY important. We had one user who was running Fedora who ran into a problem that ONLY occurred on Fedora. We were able to get that on fixed. So PLEASE give me this information.

    Finally, would you zip the .tcl file and attach it so I can try to figure out what's happening? Since PAGE creates every line of Python code based off of this file, this could lead us to an answer.

    Another question has come to mind. How are you starting PAGE?
    Is it from the Desktop? Are you starting PAGE in the folder that you are eventually going to save the project? While this is more of a common problem for Windows users, it does make a difference in Linux as well.

    Please answer these questions and zip up the project .tcl file so I can assist you.

     
    👍
    1
  • Anonymous

    Anonymous - 2024-10-07

    Yes, of course I tried building a few times to investigate what the issue was. But it can't ever run in the page "terminal" with the indent errors. Not sure what you mean by "all these problems" It is merely not indenting certain sections (as noted), other sections, such as support are indented fine

    Static hostname: raspberrypi
    Icon name: computer
    Operating System: Raspbian GNU/Linux 10 (buster)
    Kernel: Linux 5.10.63-v7+
    Architecture: arm

    It is run from a python IDE, as it has been for a long time with different version off page. It was recently up graded to page ver 8.0 (orig layout done with page before V8.0, this is a mod of the layout).
    I FOUND THE ISSUE--I'm surprised you didn't suggest it. Apparently under preferences there is a "indentation width" that was set to zero (not sure if it got set to zero during the recent upgrade). The setting says nothing about python at all, the description could use a big improvement. (at minimum Python Indentation Width).

     

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.