Menu

specify a text var in a Entry widget, Entry will have a init value named by text var

Anonymous
2022-02-13
2022-02-15
  • Anonymous

    Anonymous - 2022-02-13
     
  • Greg Walters

    Greg Walters - 2022-02-13

    I'm guessing you are running under Windows of some version.
    Could you specify what version of OS for sure and which version of PAGE you are having this issue with?

    Greg

     
  • Greg Walters

    Greg Walters - 2022-02-13

    Under Linux, this only shows up when the program is run under Python.

    I can verify that this happens under PAGE 7.2. A quick workaround would be to initialize the text var for the Entry widget at startup of the project_support.py file...

    def main(*args):
        '''Main entry point for the application.'''
        global root
        root = tk.Tk()
        root.protocol( 'WM_DELETE_WINDOW' , root.destroy)
        # Creates a toplevel widget.
        global _top1, _w1
        _top1 = root
        _w1 = test2.Toplevel1(_top1)
       startup()
        root.mainloop()
    
    def startup():
        _w1.pwd.set('')
    

    It is possible that it could happen with other widgets as well. It's always a good idea to initialize your variables, tk or otherwise, during the startup process.
    I hope this helps.

    Greg

     
  • Anonymous

    Anonymous - 2022-02-14

    i use PAGE 7.2 and win10, it's a good practice to initialize varaiable such as ''

     
  • Greg Walters

    Greg Walters - 2022-02-15

    Thank you.
    This will be fixed in the next release, which hopefully be in the next few days.

    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.