Skip to content
This repository has been archived by the owner on Aug 8, 2021. It is now read-only.

Commit

Permalink
Added what's new of R-F.E v3.1 to CHANGELOG and changes on code
Browse files Browse the repository at this point in the history
  • Loading branch information
ygz213 committed Jul 19, 2021
1 parent b456026 commit 681550e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# R-F.E v3.1

- Added dark theme ([#2](https://github.com/ygz213/Real-file.extnsn/issues/2))

# R-F.E v3

- Added "Options" interface (with `options.py`)
Expand Down
8 changes: 4 additions & 4 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def main_widgets(self):
def run_scanner():
scanner_user = saf.scanner_class()
scanner_user.scanning_widgets()
def run_settings():
settings_user = opo.options_class()
settings_user.options_widgets()
def run_options():
options_user = opo.options_class()
options_user.options_widgets()

Button(self.main_menu,
text = 'Scan a file', # "Scan a file" button
Expand All @@ -52,7 +52,7 @@ def run_settings():
activebackground = '#52467D',
activeforeground = '#FFF',
relief = 'flat',
command = lambda: run_settings()).grid(padx = 37, pady = 14)
command = lambda: run_options()).grid(padx = 37, pady = 14)

self.main_menu.mainloop()

Expand Down
4 changes: 2 additions & 2 deletions app/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def options_widgets(self):
theme = IntVar()
theme.set(0)

def save_settings():
def save_options():
options_file = open('options.txt', 'w')
if theme.get() == 1:
theme.set(0)
Expand All @@ -39,7 +39,7 @@ def save_settings():
variable = theme,
onvalue = 1,
offvalue = 0,
command = lambda: save_settings()).pack(side = 'left')
command = lambda: save_options()).pack(side = 'left')
Label(theme_frame, text = 'Dark theme', bg = '#52467D', fg = 'white').pack(side = 'right')

Label(self.options_menu, text = '• Restart the app after changing the options.', bg = '#52467D', fg = 'white').pack()
Expand Down
2 changes: 1 addition & 1 deletion app/options_turkish.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def ayarların_widgetları(self):
tema.set(0)

def ayarları_kaydet():
ayarlar_dosyası = open('settings.txt', 'w')
ayarlar_dosyası = open('options.txt', 'w')
if tema.get() == 1:
tema.set(0)
ayarlar_dosyası.write('theme: False')
Expand Down

0 comments on commit 681550e

Please sign in to comment.