Skip to content

Commit

Permalink
Merge pull request #2 from MYRSGRAL/master
Browse files Browse the repository at this point in the history
adding the windows bin open function
  • Loading branch information
king-tri-ton authored Oct 26, 2024
2 parents 04927af + 19de5dc commit 5e73be9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ def empty_recycle_bin():

update_icon()

def open_recycle_bin():
os.startfile("shell:RecycleBinFolder")

def exit_program():
QApplication.quit()

Expand Down Expand Up @@ -72,9 +75,11 @@ def periodic_update():
tray_icon.setIcon(load_icon("icons/minibin-kt-empty.ico"))

tray_menu = QMenu()
open_action = QAction("Открыть корзину", triggered=open_recycle_bin)
empty_action = QAction("Очистить корзину", triggered=empty_recycle_bin)
exit_action = QAction("Выход", triggered=exit_program)

tray_menu.addAction(open_action)
tray_menu.addAction(empty_action)
tray_menu.addAction(exit_action)

Expand Down

0 comments on commit 5e73be9

Please sign in to comment.