Skip to content

Commit 39d2b9f

Browse files
committed
Merge branch 'New-Simu' of https://github.com/riptideio/modbus-simulator into New-Simu
2 parents 1fd3d22 + e9056d1 commit 39d2b9f

File tree

16 files changed

+586
-392
lines changed

16 files changed

+586
-392
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ target/
6666

6767
#JSONFiles
6868
*.json
69+
70+
/.venv
71+
6972
**/*.ini
7073
instructions
7174
read

LICENSE

Lines changed: 0 additions & 201 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ A standalone application specific to target OS can be created with Kivy package
5151
5252
5353
# NOTE:
54-
A cli version supporting both Modbus_RTU and Modbus_TCP is available here [modbus_simu_cli](https://github.com/dhoomakethu/modbus_sim_cli)
54+
A cli version supporting both Modbus_RTU and Modbus_TCP is available here [modbus_simu_cli](https://bitbucket.org/riptideio/modbus_sim_cli)

img/simu.gif

-920 KB
Loading

modbus_simulator/main.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
'''
55
import click
66
import sys
7-
import __builtin__
7+
import six
8+
9+
if six.PY2:
10+
import __builtin__
11+
else:
12+
import builtins as __builtin__
813

914

1015
@click.command()

modbus_simulator/templates/modbussimu.kv

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
size: self.width - 2 * self.margin , self.thickness
1818

1919

20-
<DataModal>:
20+
<DataModel>:
2121
<FloatInput>:
2222
<Gui>:
2323
slave_list: slave_list
@@ -254,11 +254,13 @@
254254
id: add_data
255255
text: "add"
256256
on_release: root.update_data_models(*args)
257-
Widget:
258-
Button:
259-
id: delete_data
260-
text: "delete"
261-
on_release: root.delete_data_entry(*args)
257+
# Widget:
258+
# Button:
259+
# id: delete_data
260+
# text: "delete"
261+
# disabled: True
262+
# on_release: root.delete_data_entry(*args)
263+
# hide: True
262264
Separator:
263265
TabbedPanel:
264266
id: data_model_screen
@@ -298,7 +300,7 @@
298300
id: riptide_logo
299301
with_previous: False
300302
disabled: True
301-
title: ' v1.0.0'
303+
title: ' v2.0.0'
302304
ActionOverflow:
303305
ActionButton:
304306
id: reset_simulation

0 commit comments

Comments
 (0)