• Login
Community
  • Login

My Run Macro for Python Doesn't Keep Created Windows Open

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
python
7 Posts 3 Posters 1.2k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    Steven Blea
    last edited by Steven Blea Feb 14, 2019, 2:36 AM Feb 14, 2019, 2:34 AM

    Currently, I’m using: C:\Python37\pythonw.exe “$(FULL_CURRENT_PATH)” -i

    It DOES open up a command line window, which appears for a moment, then closes. However, the program I’m trying to open makes its own window and should start running, it just… doesn’t.

    Edit: I also tried it with python.exe

    E 1 Reply Last reply Feb 14, 2019, 12:55 PM Reply Quote 0
    • R
      rinku singh
      last edited by Feb 14, 2019, 2:56 AM

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • E
        Eko palypse @Steven Blea
        last edited by Feb 14, 2019, 12:55 PM

        @Steven-Blea

        give it a try by using cmd /k C:\Python37\pythonw.exe “$(FULL_CURRENT_PATH)” -i

        if this doesn’t work, what UI framework are you using?
        Tkinter pyqt, wxpython, kivy, beeware … ?

        1 Reply Last reply Reply Quote 2
        • S
          Steven Blea
          last edited by Feb 15, 2019, 1:34 AM

          This seems to work. The window immediately closes, but the python shell remains, so my assumption is that there’s a bug I’m missing.

          1 Reply Last reply Reply Quote 0
          • E
            Eko palypse
            last edited by Feb 15, 2019, 11:14 PM

            I can’t say for sure as I haven’'t investigated how npp starts external process.
            What gui framework are you using?

            1 Reply Last reply Reply Quote 0
            • S
              Steven Blea
              last edited by Feb 16, 2019, 9:09 PM

              The default one? I wasn’t aware there were others.

              1 Reply Last reply Reply Quote 0
              • E
                Eko palypse
                last edited by Feb 16, 2019, 9:17 PM

                Now the question would be, what is the default one.
                Afaik, Tkinter as well as ctypes comes with python and maybe
                packages like anaconda bundle something in addition.

                1 Reply Last reply Reply Quote 0
                6 out of 7
                • First post
                  6/7
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors