GithubHelp home page GithubHelp logo

Comments (2)

pryrt avatar pryrt commented on July 17, 2024 1

The >>> might be good, but is it sufficient? Not everyone runs with the PythonScript Console visible. (Most of my scripts don't force it on, unless I'm debugging; and I don't have that window showing by default.)

My thought would be an icon on the toolbar: either one that only appears while the script is running, or one that changes the icon depending on the state (similar to the pushed/unpushed for builtin toolbar icons like the word-wrap or function-list): my original ideas were like red-light/green-light and walk/don't-walk icons, though I cannot decide whether red-light would mean the script was running (so it's not safe to manually edit) or wasn't running (so the script is "stopped") -- since I am not certain, I wouldn't be surprised if some fraction of the users were confused as to which meant which. Or maybe a yield triangle sign when it's running ("yield to the active script"). (If you don't like the icon being permanent, maybe have a toggleable setting, similar to Show Console, that would show or hide the script-status icon.)

Or maybe a simpler interface, as I suggested in #288, would be to just change the cursor to the IDC_WAIT cursor while the script is running, to get the well-recognized spinning hourglass.

from pythonscript.

victorel-petrovich avatar victorel-petrovich commented on July 17, 2024

Since it's rare that scripts to run for so long, you'd expect it for the peculiar scripts, so perhaps one of the simplest ways is just add console.hide() at the start of the script, and console.show() at the end of it ? (Or reversly). And maybe making it write some output on console saying it's this particular script that ended.

from pythonscript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.