mirror of
https://github.com/norohind/EDMC_SpanshRouter.git
synced 2025-06-05 18:03:10 +03:00
Refacto
This commit is contained in:
parent
e1a13d364b
commit
96f8b3389d
8
load.py
8
load.py
@ -176,13 +176,13 @@ def show_plot_gui(show=True):
|
|||||||
show_route_gui(True)
|
show_route_gui(True)
|
||||||
|
|
||||||
def copy_waypoint(self=None):
|
def copy_waypoint(self=None):
|
||||||
if sys.platform == "win32":
|
if sys.platform == "linux" or sys.platform == "linux2":
|
||||||
|
command = subprocess.Popen(["echo", "-n", this.next_stop], stdout=subprocess.PIPE)
|
||||||
|
subprocess.Popen(["xclip", "-selection", "c"], stdin=command.stdout)
|
||||||
|
else:
|
||||||
this.parent.clipboard_clear()
|
this.parent.clipboard_clear()
|
||||||
this.parent.clipboard_append(this.next_stop)
|
this.parent.clipboard_append(this.next_stop)
|
||||||
this.parent.update()
|
this.parent.update()
|
||||||
else:
|
|
||||||
command = subprocess.Popen(["echo", "-n", this.next_stop], stdout=subprocess.PIPE)
|
|
||||||
subprocess.Popen(["xclip", "-selection", "c"], stdin=command.stdout)
|
|
||||||
|
|
||||||
def goto_next_waypoint(self=None):
|
def goto_next_waypoint(self=None):
|
||||||
if this.offset < this.route.__len__()-1:
|
if this.offset < this.route.__len__()-1:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user