Comments (2)
I'm not totally sure where this happens, but if you're using the same vars and you only want to init when you run for the first time, just do something like:
if(!object_to_init): object.init()
I'm fairly certain python will let you evaluate the existence of objects. If not, there are other ways to see if something exists, I'm sure.
from mousetrap.
Right now the color picker uses the first_time boolean as well. So if we eliminate it, we should make sure the color picker still works!
from mousetrap.
Related Issues (20)
- Selection box is not useable HOT 1
- Choppy/flappy mouse movements
- Color picker doesn't work HOT 1
- Make the vscreen size customizable HOT 1
- When should set_opencv be called? HOT 3
- Mousetrap needs to handle both ctypes-opencv and opencv HOT 2
- Allow more config flags at startup HOT 1
- Color picker should only appear when color IDM is selected HOT 1
- Color picker range set in config HOT 1
- Allow users to choose more than one color at a time
- Color picker makes window too large HOT 1
- Make Color picker update without having to restart mousetrap HOT 1
- Mouse gets frozen when stopping tracking. HOT 1
- Make object selection window of variable size HOT 1
- Make framerate and pointer-update rate configurable.
- Config file not initalizing properly
- Better way to do keyboard input? HOT 1
- Port C function to convert RGB -> HSV HOT 2
- So, about that color IDM code HOT 1
- Make Mask and Histogram windows hideable HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mousetrap.