• Login
Community
  • Login

no output when using kivy in python in notepad++

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
16 Posts 2 Posters 2.3k 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
    Sean Lacey
    last edited by Jan 11, 2019, 7:38 PM

    python works fine, i get text output in the command line, and in idle i get the windowed output i expect, but not when i use notepad++ which i really enjoy.

    E 1 Reply Last reply Jan 11, 2019, 8:04 PM Reply Quote 1
    • E
      Eko palypse @Sean Lacey
      last edited by Jan 11, 2019, 8:04 PM

      @Sean-Lacey

      How do you start your kivy/python program?

      1 Reply Last reply Reply Quote 0
      • S
        Sean Lacey
        last edited by Jan 11, 2019, 8:15 PM

        I know I installed python correctly, i put it in the path and everything, its been a while since i installed notepad. to install kivy i went into the windows command prompt and typed “python -m pip install kivy”. i know this worked because i can fully use kivy using the idle interface. just not in the Notepad++ interface.

        E 1 Reply Last reply Jan 11, 2019, 8:26 PM Reply Quote 1
        • E
          Eko palypse @Sean Lacey
          last edited by Eko palypse Jan 11, 2019, 8:26 PM Jan 11, 2019, 8:26 PM

          @Sean-Lacey

          sorry but you did not answer my question how you start your program.
          Using run menu and if how? Using NppExec, if so what did you specify to run the program?

          1 Reply Last reply Reply Quote 1
          • S
            Sean Lacey
            last edited by Jan 11, 2019, 8:29 PM

            sorry, yes it was nppexec

            E 1 Reply Last reply Jan 11, 2019, 8:29 PM Reply Quote 0
            • E
              Eko palypse @Sean Lacey
              last edited by Jan 11, 2019, 8:29 PM

              @Sean-Lacey

              if so what did you specify to run the program?

              1 Reply Last reply Reply Quote 0
              • S
                Sean Lacey
                last edited by Jan 11, 2019, 8:30 PM

                im not sure what you mean what did i specify (sorry, pressed submit before i was done and had to wait a minute)

                1 Reply Last reply Reply Quote 0
                • E
                  Eko palypse
                  last edited by Jan 11, 2019, 8:31 PM

                  you need to specify which python interpreter you want to use, with which parameters to execute the program

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sean Lacey
                    last edited by Jan 11, 2019, 8:33 PM

                    im using python 3.7.1. its been a while since i set notepad up, where would i find the parameters

                    E 1 Reply Last reply Jan 11, 2019, 8:34 PM Reply Quote 0
                    • E
                      Eko palypse @Sean Lacey
                      last edited by Jan 11, 2019, 8:34 PM

                      @Sean-Lacey

                      you will see it if you press F6 - as long as you have not reassigned the standard NppExec shortcut

                      1 Reply Last reply Reply Quote 0
                      • S
                        Sean Lacey
                        last edited by Jan 11, 2019, 8:37 PM

                        i have not reassigned anything except F7 is now set to run python
                        this is what im getting "C:\Users\(MYNAME)\AppData\Local\Programs\Python\Python37-32\python.exe “$(FILE_NAME)”

                        E 1 Reply Last reply Jan 11, 2019, 8:40 PM Reply Quote 0
                        • E
                          Eko palypse @Sean Lacey
                          last edited by Jan 11, 2019, 8:40 PM

                          @Sean-Lacey

                          this doesn’t work for gui frameworks like kivy.
                          Use something like

                          cmd /C cd $(CURRENT_DIRECTORY) && "C:\Users\(MYNAME)\AppData\Local\Programs\Python\Python37-32\python.exe" -t -B -u "$(FILE_NAME)"

                          1 Reply Last reply Reply Quote 2
                          • S
                            Sean Lacey
                            last edited by Jan 11, 2019, 8:42 PM

                            just confirming, am i supposed to copy what you sent me and replace what i sent you for it

                            E 1 Reply Last reply Jan 11, 2019, 8:46 PM Reply Quote 0
                            • E
                              Eko palypse @Sean Lacey
                              last edited by Jan 11, 2019, 8:46 PM

                              @Sean-Lacey

                              normally yes, as long as you sent me the whole configured call setup.

                              1 Reply Last reply Reply Quote 0
                              • S
                                Sean Lacey
                                last edited by Jan 11, 2019, 8:58 PM

                                i did, i check it now

                                1 Reply Last reply Reply Quote 0
                                • S
                                  Sean Lacey
                                  last edited by Jan 11, 2019, 9:17 PM

                                  it worked thank you so much

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