mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-22 14:13:55 -06:00
Reformat file and remove unused import
CURA-7440
This commit is contained in:
parent
a46bf8d6fa
commit
8678682d94
1 changed files with 8 additions and 8 deletions
|
@ -1,17 +1,16 @@
|
||||||
# Copyright (c) 2019 Ultimaker B.V.
|
# Copyright (c) 2019 Ultimaker B.V.
|
||||||
# Cura is released under the terms of the LGPLv3 or higher.
|
# Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
from typing import List
|
||||||
|
|
||||||
from UM.Application import Application
|
from UM.Application import Application
|
||||||
from UM.Job import Job
|
from UM.Job import Job
|
||||||
from UM.Scene.SceneNode import SceneNode
|
|
||||||
from UM.Message import Message
|
from UM.Message import Message
|
||||||
|
from UM.Scene.SceneNode import SceneNode
|
||||||
from UM.i18n import i18nCatalog
|
from UM.i18n import i18nCatalog
|
||||||
from cura.Arranging.Nest2DArrange import arrange
|
from cura.Arranging.Nest2DArrange import arrange
|
||||||
|
|
||||||
i18n_catalog = i18nCatalog("cura")
|
i18n_catalog = i18nCatalog("cura")
|
||||||
|
|
||||||
from typing import List
|
|
||||||
from pynest2d import *
|
|
||||||
|
|
||||||
|
|
||||||
class ArrangeObjectsJob(Job):
|
class ArrangeObjectsJob(Job):
|
||||||
def __init__(self, nodes: List[SceneNode], fixed_nodes: List[SceneNode], min_offset = 8) -> None:
|
def __init__(self, nodes: List[SceneNode], fixed_nodes: List[SceneNode], min_offset = 8) -> None:
|
||||||
|
@ -23,7 +22,7 @@ class ArrangeObjectsJob(Job):
|
||||||
def run(self):
|
def run(self):
|
||||||
status_message = Message(i18n_catalog.i18nc("@info:status", "Finding new location for objects"),
|
status_message = Message(i18n_catalog.i18nc("@info:status", "Finding new location for objects"),
|
||||||
lifetime = 0,
|
lifetime = 0,
|
||||||
dismissable=False,
|
dismissable = False,
|
||||||
progress = 0,
|
progress = 0,
|
||||||
title = i18n_catalog.i18nc("@info:title", "Finding Location"))
|
title = i18n_catalog.i18nc("@info:title", "Finding Location"))
|
||||||
status_message.show()
|
status_message.show()
|
||||||
|
@ -32,8 +31,9 @@ class ArrangeObjectsJob(Job):
|
||||||
|
|
||||||
status_message.hide()
|
status_message.hide()
|
||||||
if not found_solution_for_all:
|
if not found_solution_for_all:
|
||||||
no_full_solution_message = Message(i18n_catalog.i18nc("@info:status", "Unable to find a location within the build volume for all objects"),
|
no_full_solution_message = Message(
|
||||||
|
i18n_catalog.i18nc("@info:status",
|
||||||
|
"Unable to find a location within the build volume for all objects"),
|
||||||
title = i18n_catalog.i18nc("@info:title", "Can't Find Location"))
|
title = i18n_catalog.i18nc("@info:title", "Can't Find Location"))
|
||||||
no_full_solution_message.show()
|
no_full_solution_message.show()
|
||||||
self.finished.emit(self)
|
self.finished.emit(self)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue