From 338350e9df4f93a551e23be3636404b163ef7667 Mon Sep 17 00:00:00 2001 From: argekod <7187204+argekod@users.noreply.github.com> Date: Tue, 13 Aug 2024 15:36:17 +0300 Subject: [PATCH] =?UTF-8?q?komut=20sat=C4=B1r=C4=B1ndan=20dosya=20acabilme?= =?UTF-8?q?=20ozelligi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/defter/defter.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/defter/defter.py b/src/defter/defter.py index bf0341f..1af7035 100644 --- a/src/defter/defter.py +++ b/src/defter/defter.py @@ -2804,7 +2804,7 @@ def act_open_def_file(self, zipFilePath=None): shutil.unpack_archive(zipFilePath, tempDirPath, "zip") except Exception as e: self.lutfen_bekleyin_gizle() - hata = self.tr('Could not import file -- "{0:s}"\n{1:s}').format(zipFilePath, str(e)) + hata = self.tr('Could not open file -- "{0:s}"\n{1:s}').format(zipFilePath, str(e)) self.log(hata, 5000, 3, dialog=True) return False @@ -11415,8 +11415,13 @@ def calistir(): # Guncelleme: Şimdi pencereyi once de olusturabiliyoruz.. # o yuzden iptal ettik alt satiri, # TODO: su anda yine bozuk :) + pencere = DefterAnaPencere() + for zipFilePath in sys.argv[1:]: + if zipFilePath.endswith(".def"): + pencere.act_open_def_file(zipFilePath) + # pencere.show() # burda pencere.show() demiyoruz, DefterAnaPencere().__init__ icinde show var. # initten cikmadan bazi islemlerden once show cagirmak gerekiyor. (visible view rect sceneRect e atayabilmek icin)