moteus-gui 0.3.88__py3-none-any.whl → 0.3.89__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
moteus_gui/tview.py CHANGED
@@ -75,6 +75,14 @@ import asyncqt
75
75
  import moteus.reader as reader
76
76
 
77
77
 
78
+ try:
79
+ from . import version
80
+ except ImportError:
81
+ class Version:
82
+ VERSION = 'dev'
83
+ version = Version()
84
+
85
+
78
86
  LEFT_LEGEND_LOC = 3
79
87
  RIGHT_LEGEND_LOC = 2
80
88
 
@@ -1274,6 +1282,8 @@ def main():
1274
1282
  signal.signal(signal.SIGINT, signal.SIG_DFL)
1275
1283
  parser = argparse.ArgumentParser(description=__doc__)
1276
1284
 
1285
+ parser.add_argument('--version', action='store_true')
1286
+
1277
1287
  # These two commands are aliases.
1278
1288
  parser.add_argument('-d', '--devices', '-t', '--target',
1279
1289
  action='append', type=str, default=[])
@@ -1285,6 +1295,10 @@ def main():
1285
1295
 
1286
1296
  args = parser.parse_args()
1287
1297
 
1298
+ if args.version:
1299
+ print(f"tview version '{version.VERSION}'")
1300
+ sys.exit(0)
1301
+
1288
1302
  app = QtWidgets.QApplication(sys.argv)
1289
1303
  loop = asyncqt.QEventLoop(app)
1290
1304
  asyncio.set_event_loop(loop)
moteus_gui/version.py CHANGED
@@ -12,4 +12,4 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- VERSION="0.3.88"
15
+ VERSION="0.3.89"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: moteus-gui
3
- Version: 0.3.88
3
+ Version: 0.3.89
4
4
  Summary: moteus brushless controller graphical user interfaces
5
5
  Home-page: https://github.com/mjbots/moteus
6
6
  Author: mjbots Robotic Systems
@@ -0,0 +1,9 @@
1
+ moteus_gui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ moteus_gui/tview.py,sha256=OHpdvy3wdPYzmIMU0zRx4e7rjMRru__JEaOkD9djH7Q,42379
3
+ moteus_gui/tview_main_window.ui,sha256=q_qA1sooIWzprVT8eYAe0EH9lfu7zg-QP1diETCNFh8,5556
4
+ moteus_gui/version.py,sha256=awY4LvZ9OK5lPoCwGam-n3a3hS_9hqodOOLIH3OHQCw,627
5
+ moteus_gui-0.3.89.dist-info/METADATA,sha256=fNJiyXORfbOvdBmtWIaR-L7ux6nKzIlpCb1ICNrdh2M,996
6
+ moteus_gui-0.3.89.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
7
+ moteus_gui-0.3.89.dist-info/entry_points.txt,sha256=Y9PnhK_gNxr8CO7_POHieVaK1U_4fgu2EYoS6TyzSgk,48
8
+ moteus_gui-0.3.89.dist-info/top_level.txt,sha256=oPOkXR-zpPFhGiDcbnDY6scvNqQQAXWzV7oPD_GHMns,11
9
+ moteus_gui-0.3.89.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- moteus_gui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- moteus_gui/tview.py,sha256=AFOsdGSHMSQ5AYinA6pMnkZhUYE3IZYnJp3zPgyVT98,42106
3
- moteus_gui/tview_main_window.ui,sha256=q_qA1sooIWzprVT8eYAe0EH9lfu7zg-QP1diETCNFh8,5556
4
- moteus_gui/version.py,sha256=bYmrQeWLHbeSIrqSgHNqnNU3m7WMEJx3w6Szx9slMuo,627
5
- moteus_gui-0.3.88.dist-info/METADATA,sha256=IcBOQ9zXaI44rPKGzfloqjEX1WsNVt8Exei18EAEqu4,996
6
- moteus_gui-0.3.88.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
7
- moteus_gui-0.3.88.dist-info/entry_points.txt,sha256=Y9PnhK_gNxr8CO7_POHieVaK1U_4fgu2EYoS6TyzSgk,48
8
- moteus_gui-0.3.88.dist-info/top_level.txt,sha256=oPOkXR-zpPFhGiDcbnDY6scvNqQQAXWzV7oPD_GHMns,11
9
- moteus_gui-0.3.88.dist-info/RECORD,,