diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 0f1311c..0777c94 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,9 +4,8 @@
-
+
-
@@ -41,23 +40,23 @@
- {
- "keyToString": {
- "ASKED_ADD_EXTERNAL_FILES": "true",
- "Python.INSTALL.executor": "Run",
- "Python.install.executor": "Run",
- "Python.main.executor": "Run",
- "Python.messagebox.executor": "Run",
- "Python.start_wg.executor": "Run",
- "Python.wg_func.executor": "Run",
- "Python.wg_main.executor": "Run",
- "RunOnceActivity.ShowReadmeOnStart": "true",
- "Shell Script.install.executor": "Run",
- "git-widget-placeholder": "main",
- "last_opened_file_path": "/home/punix/Pyapps/wire-py",
- "settings.editor.selected.configurable": "preferences.fileTypes"
+
+}]]>
@@ -134,14 +133,6 @@
1723279982210
-
-
- 1723666001005
-
-
-
- 1723666001005
-
1723666477079
@@ -526,7 +517,15 @@
1727028915701
-
+
+
+ 1727118598759
+
+
+
+ 1727118598760
+
+
@@ -567,7 +566,6 @@
-
@@ -592,7 +590,8 @@
-
+
+
diff --git a/wg_main.py b/wg_main.py
index 8655c08..12150cd 100755
--- a/wg_main.py
+++ b/wg_main.py
@@ -215,6 +215,7 @@ class FrameWidgets(ttk.Frame):
self.lb_rename.config(state='disable')
def tl_rename():
+ special_characters = ['\\', '/', '{', '}', ' ']
if len(self.lb_rename.get()) > 12:
"""img_w, img_i, w_title, w_txt hand over"""
@@ -236,14 +237,14 @@ class FrameWidgets(ttk.Frame):
y = 140 # height
msg_window(iw, ii, wt, msg_t, x, y)
- elif ' ' in self.lb_rename.get():
+ elif any(ch in special_characters for ch in self.lb_rename.get()):
"""img_w, img_i, w_title, w_txt x, y hand over"""
iw = r'/usr/share/icons/wp-icons/64/info.png'
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
wt = 'Renaming not possible'
- msg_t = 'Please do not use blanks.'
- x = 280 # width
- y = 140 # height
+ msg_t = 'No valid sign. These must not be used.\nBlank, Slash, Backslash and { }'
+ x = 370 # width
+ y = 130 # height
msg_window(iw, ii, wt, msg_t, x, y)
else:
try: