stockloha.blogg.se

Nodebox on ubuntu
Nodebox on ubuntu











nodebox on ubuntu

Self.g.add_edge(node_name, self.DELETE, length=0.2) Self.g.add_edge(node_name, self.EXPLORE_D, length=0.2) Self.g.add_edge(node_name, self.EXPLORE_F, length=0.2) Self.g.add_edge(, self.CLOSE, length=0.6) Self.g.add_node(id=name, radius = 5, root = root) Self.CBUTTON = False #Is Close button showing? Self.BUTTONS = False #Are buttons showing? #Layer._init_(self) # unknown thing, might be necessary. """rawgraph is an instance of the RawGraph class """Draw and interact with the damn thing.

nodebox on ubuntu

Here is partial example code: from aphics import *įrom import Node, Edge, Graph However, nodebox opengl has it's own interactive functions to it is possible to use them instead.

#NODEBOX ON UBUNTU FOR MAC#

Pydev Nodebox: "AttributeError: 'NoneType' object has no attribute 'WIDTH'"īut the given answer is not helpful at all to me.ĭoesn't work for nodebox opengl, it is only compatible for nodebox 1 for mac so there is no easy fix. If I just comment size out, I get the following error: self.x = _ctx.WIDTH - max.x*self.d - min_.x*self.dĪttributeError: 'NoneType' object has no attribute 'WIDTH' That still doesn't work because now the function size is not recognized. Second putting the ximport function from nodebox in my code: def ximport(library): That doesn't work because ximport is not defined, it is only define by nodebox, so instead I tried two things, first doing a normal import # and the two nodes that get the most traffic. # Draw the graph, indicating the direction of each relation # for example, important nodes become blue. # Apply default rules for node colors and size, I tried to run their basic example 1 : graph = ximport("graph") I am trying to use Nodebox Graph on Ubuntu and python 2.7.













Nodebox on ubuntu