remove unnecessary loggings
This commit is contained in:
parent
5dd379a2ee
commit
09397925e8
9 changed files with 0 additions and 18 deletions
|
@ -213,7 +213,6 @@ class CanvasEdge:
|
|||
self.canvas.itemconfig(self.id, fill=EDGE_COLOR, width=EDGE_WIDTH)
|
||||
|
||||
def create_context(self, event: tk.Event):
|
||||
logging.debug("create link context")
|
||||
context = tk.Menu(self.canvas)
|
||||
themes.style_menu(context)
|
||||
context.add_command(label="Configure", command=self.configure)
|
||||
|
@ -227,6 +226,5 @@ class CanvasEdge:
|
|||
context.post(event.x_root, event.y_root)
|
||||
|
||||
def configure(self):
|
||||
logging.debug("link configuration")
|
||||
dialog = LinkConfigurationDialog(self.canvas, self.canvas.app, self)
|
||||
dialog.show()
|
||||
|
|
|
@ -42,9 +42,6 @@ class CanvasNode:
|
|||
self.id = self.canvas.create_image(
|
||||
x, y, anchor=tk.CENTER, image=self.image, tags=tags.NODE
|
||||
)
|
||||
logging.debug(
|
||||
"Draw canvas node for node(%s), canvas id: %s", core_node.name, self.id
|
||||
)
|
||||
text_font = font.Font(family="TkIconFont", size=12)
|
||||
label_y = self._get_label_y()
|
||||
self.text_id = self.canvas.create_text(
|
||||
|
|
|
@ -86,7 +86,6 @@ class Shape:
|
|||
outline=self.shape_data.border_color,
|
||||
width=self.shape_data.border_width,
|
||||
)
|
||||
logging.debug("Create oval, id(%s)", self.id)
|
||||
self.draw_shape_text()
|
||||
elif self.shape_type == ShapeType.RECTANGLE:
|
||||
self.id = self.canvas.create_rectangle(
|
||||
|
@ -100,7 +99,6 @@ class Shape:
|
|||
outline=self.shape_data.border_color,
|
||||
width=self.shape_data.border_width,
|
||||
)
|
||||
logging.debug("Create rectangle, id(%s)", self.id)
|
||||
self.draw_shape_text()
|
||||
elif self.shape_type == ShapeType.TEXT:
|
||||
font = self.get_font()
|
||||
|
@ -112,7 +110,6 @@ class Shape:
|
|||
fill=self.shape_data.text_color,
|
||||
font=font,
|
||||
)
|
||||
logging.debug("Create text, id(%s)", self.id)
|
||||
else:
|
||||
logging.error("unknown shape type: %s", self.shape_type)
|
||||
self.created = True
|
||||
|
@ -147,7 +144,6 @@ class Shape:
|
|||
def shape_complete(self, x: float, y: float):
|
||||
for component in tags.ABOVE_SHAPE:
|
||||
self.canvas.tag_raise(component)
|
||||
logging.debug("Complete shape, id(%s)", self.id)
|
||||
s = ShapeDialog(self.app, self.app, self)
|
||||
s.show()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue