1. NodeBox 1
    1. Homepage
    2. NodeBox 3Node-based app for generative design and data visualization
    3. NodeBox OpenGLHardware-accelerated cross-platform graphics library
    4. NodeBox 1Generate 2D visuals using Python code (Mac OS X only)
  2. Gallery
  3. Documentation
  4. Forum
  5. Blog

Mouse activity in fullscreen mode

Posted by Fei on Nov 07, 2008

Heya,
was just wondering, I am playing around with the graph library in fullscreen mode, and was wondering if the mouse-absence was normal? I'd like to be able to interact with the graph in fullscreen too!!! Is this possible?
Fei


 
Posted by senthil 53 on Nov 07, 2008

Not sure if there is a proper solution, but I use the following work around:

class mouse:
    def __init__(self, graph):
        self.graph = graph
    def count(self):
        for x in self.stuff:
            yield x
    def draw(self):
        #text(str(MOUSEX)+', '+str(MOUSEY), 10, 15)
        s = self.graph.styles.default
        _ctx.reset()
        _ctx.fill(1,0.5,0)
        _ctx.arrow(MOUSEX, MOUSEY, 15, type=FORTYFIVE)
Just make sure to call mouse's draw() in your own.



Posted by senthil 53 on Nov 07, 2008

Of course you will have to modify it for non-graph usage, but hopefully you get the idea.