In FrameWidged Class else Block StrVar, this resorts reference and variable assignment together

This commit is contained in:
Désiré Werner Menrath 2024-08-23 10:22:18 +02:00
parent b6555974ea
commit 101a2167b6
2 changed files with 14 additions and 7 deletions

View File

@ -4,11 +4,9 @@
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="940e1630-c825-4d4c-be80-bc11f543c122" name="Changes" comment="Remove open file function, add Show Address Labels with tk.StrVar when remove a not active Tunnel Labels of Active Tunnel removed!">
<list default="true" id="940e1630-c825-4d4c-be80-bc11f543c122" name="Changes" comment="fixed error when active tunnel is deleted,&#10;now also the Address Label is emptied">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/dict_to_address" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/main.py" beforeDir="false" afterPath="$PROJECT_DIR$/main.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/wg_func.py" beforeDir="false" afterPath="$PROJECT_DIR$/wg_func.py" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -180,7 +178,15 @@
<option name="project" value="LOCAL" />
<updated>1724371229008</updated>
</task>
<option name="localTasksCounter" value="12" />
<task id="LOCAL-00012" summary="fixed error when active tunnel is deleted,&#10;now also the Address Label is emptied">
<option name="closed" value="true" />
<created>1724400463791</created>
<option name="number" value="00012" />
<option name="presentableId" value="LOCAL-00012" />
<option name="project" value="LOCAL" />
<updated>1724400463791</updated>
</task>
<option name="localTasksCounter" value="13" />
<servers />
</component>
<component name="Vcs.Log.Tabs.Properties">
@ -218,6 +224,7 @@
<MESSAGE value="add Class StartStopBTN to wg_func.py" />
<MESSAGE value="Set Style to Clam&#10;Improved layout of widgets" />
<MESSAGE value="Remove open file function, add Show Address Labels with tk.StrVar when remove a not active Tunnel Labels of Active Tunnel removed!" />
<option name="LAST_COMMIT_MESSAGE" value="Remove open file function, add Show Address Labels with tk.StrVar when remove a not active Tunnel Labels of Active Tunnel removed!" />
<MESSAGE value="fixed error when active tunnel is deleted,&#10;now also the Address Label is emptied" />
<option name="LAST_COMMIT_MESSAGE" value="fixed error when active tunnel is deleted,&#10;now also the Address Label is emptied" />
</component>
</project>

View File

@ -115,10 +115,10 @@ class FrameWidgets(ttk.Frame):
StartStopBTN.button_start(self)
# Address Label
self.add = tk.StringVar()
self.add.set('')
self.DNS = tk.StringVar()
self.DNS.set('')
self.enp = tk.StringVar()
self.add.set('')
self.DNS.set('')
self.enp.set('')
ShowAddress.show_data(self)
# Button Import