11import tkinter as tk
22from tkinter import messagebox , simpledialog , filedialog , ttk
3- from TechicalFiles .ngrok_manager import NgrokManager
3+ from TechnicalFiles .ngrok_manager import NgrokManager
44import json
55import webbrowser
66from configparser import ConfigParser
77import subprocess
88
9- with open ("TechicalFiles /translations.json" , "r" , encoding = "utf-8" ) as f :
9+ with open ("TechnicalFiles /translations.json" , "r" , encoding = "utf-8" ) as f :
1010 translations = json .load (f )
1111
1212manager = None
@@ -18,7 +18,7 @@ def __init__(self, root):
1818 self .root .title ("NgrokManager" )
1919
2020 self .config = ConfigParser ()
21- self .config .read ('TechicalFiles /config.ini' )
21+ self .config .read ('TechnicalFiles /config.ini' )
2222
2323 self .language = self .config .get ('general' , 'language' , fallback = 'en' )
2424 self .theme = self .config .get ('general' , 'theme' , fallback = 'dark' )
@@ -141,19 +141,19 @@ def open_web_inspection(self):
141141 def change_region (self , event = None ):
142142 self .region = self .region_var .get ()
143143 self .config .set ('general' , 'region' , self .region )
144- with open ('TechicalFiles /config.ini' , 'w' ) as configfile :
144+ with open ('TechnicalFiles /config.ini' , 'w' ) as configfile :
145145 self .config .write (configfile )
146146
147147 def create_tunnel (self ):
148148 token = self .token_entry .get ()
149149 region = self .region_var .get ()
150150
151151 self .config .set ('general' , 'ngrok_token' , token )
152- with open ('TechicalFiles /config.ini' , 'w' ) as configfile :
152+ with open ('TechnicalFiles /config.ini' , 'w' ) as configfile :
153153 self .config .write (configfile )
154154
155155 self .config .set ('general' , 'region' , region )
156- with open ('TechicalFiles /config.ini' , 'w' ) as configfile :
156+ with open ('TechnicalFiles /config.ini' , 'w' ) as configfile :
157157 self .config .write (configfile )
158158
159159 global manager
@@ -214,7 +214,7 @@ def open_tunnel_url(self, event):
214214 def change_language (self , event = None ):
215215 self .language = self .language_var .get ()
216216 self .config .set ('general' , 'language' , self .language )
217- with open ('TechicalFiles /config.ini' , 'w' ) as configfile :
217+ with open ('TechnicalFiles /config.ini' , 'w' ) as configfile :
218218 self .config .write (configfile )
219219
220220 self .t = translations .get (self .language , translations ["en" ])
@@ -223,7 +223,7 @@ def change_language(self, event=None):
223223 def change_theme (self , event = None ):
224224 self .theme = self .theme_var .get ()
225225 self .config .set ('general' , 'theme' , self .theme )
226- with open ('TechicalFiles /config.ini' , 'w' ) as configfile :
226+ with open ('TechnicalFiles /config.ini' , 'w' ) as configfile :
227227 self .config .write (configfile )
228228
229229 bg_color = "#2e2e2e" if self .theme == "dark" else "#ffffff"
0 commit comments