In FrameWidged Class else Block StrVar, this resorts reference and variable assignment together
This commit is contained in:
		
							
								
								
									
										17
									
								
								.idea/workspace.xml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										17
									
								
								.idea/workspace.xml
									
									
									
										generated
									
									
									
								
							| @@ -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,
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,
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
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,
now also the Address Label is emptied" /> | ||||
|     <option name="LAST_COMMIT_MESSAGE" value="fixed error when active tunnel is deleted,
now also the Address Label is emptied" /> | ||||
|   </component> | ||||
| </project> | ||||
							
								
								
									
										4
									
								
								main.py
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								main.py
									
									
									
									
									
								
							| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user