-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
67 changed files
with
282 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,15 +17,15 @@ | |
""" | ||
|
||
__VERSION__ = """ | ||
v2.7.25-x2d3s3-stable | ||
v2.7.26-x2d3s3-stable | ||
""" | ||
|
||
__AUTHOR__ = """ | ||
Eigenmiao ([email protected]) | ||
""" | ||
|
||
__DATE__ = """ | ||
March 12, 2023 | ||
April 9, 2023 | ||
""" | ||
|
||
__HELP__ = """ | ||
|
@@ -372,6 +372,26 @@ def colors_in_order(self): | |
def selected_color(self): | ||
return self._result.selected_color | ||
|
||
@property | ||
def full_colors(self): | ||
return self._result.full_colors | ||
|
||
@property | ||
def color_grid(self): | ||
return self._result.color_grid | ||
|
||
@property | ||
def cset(self): | ||
return self._result.cset | ||
|
||
@property | ||
def cset_in_order(self): | ||
return self._result.cset_in_order | ||
|
||
@property | ||
def refs(self): | ||
return self._result.refs | ||
|
||
@property | ||
def grid(self): | ||
return self._result.grid | ||
|
@@ -391,7 +411,6 @@ def is_connected(self): | |
""" | ||
|
||
if not self._port: | ||
self.is_started_by_script = False | ||
return False | ||
|
||
try: | ||
|
@@ -403,7 +422,6 @@ def is_connected(self): | |
|
||
except Exception as err: | ||
print("Connect to server with port {} faild:\n{}".format(self._port, err)) | ||
self.is_started_by_script = False | ||
return False | ||
|
||
return True | ||
|
@@ -903,16 +921,16 @@ def close(self, save_data=True): | |
""" | ||
|
||
if self.is_started_by_script and self.is_connected: | ||
client = socket.socket() | ||
client.settimeout(self._timeout) | ||
client.connect((self._host, self._port)) | ||
while self.is_connected: | ||
client = socket.socket() | ||
client.settimeout(self._timeout) | ||
client.connect((self._host, self._port)) | ||
|
||
info = "exit{}".format(save_data) | ||
client.sendall(info.encode("utf-8")) | ||
info = "exit{}".format(save_data) | ||
client.sendall(info.encode("utf-8")) | ||
|
||
client.close() | ||
client.close() | ||
|
||
while self.is_connected: | ||
time.sleep(1) | ||
print("Waiting for closing Rickrack.") | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
|
||
setup( | ||
name="Rickrack", | ||
version="2.7.25", | ||
version="2.7.26", | ||
author="Eigenmiao", | ||
author_email="[email protected]", | ||
description="Generate harmonious colors freely.", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.