• 4 Posts
  • 26 Comments
Joined 1 year ago
cake
Cake day: June 18th, 2023

help-circle




  • For real. The main reason I switched to linux was because I was getting into progamming, and when I had to troubleshoot something on windows it was like half a dozen arcane solutions which might work, but the linux solution to the same problem was a terminal one liner. Maybe I’d feel differently if I was afraid of the terminal, but that’s one affliction I am blessedly free of.


















  • I just want you to know you weren’t screaming into the void. Look at my new main.py:

    
    from pathlib import PurePath
    
    
    from Layout import Layout
    
    
    DEFAULT_FOLDER = PurePath("/home", "mike", "bg")
    WATERMARK_DIR = Path(Path(os.getcwd()).parent, "assets", "img")
    
    
    def main() -> Layout:
        return Layout()
    
    if __name__ == "__main__":
        main()
    

    (I know I still need to change those folder defaults, but I am still riding the high of getting all that layout stuff into Layout.py and it working. I spent a couple hours today struggling, wondering why I was just getting a blank screen, when i realized i forgot to call .grid() on the frame that held all the widgets! So it was just rendering a blank window. )