![]() ![]() Self.y.lineEdit_10.setText(str(.altAnschaffungskosten)) Self.y.lineEdit_8.setText(str(.altLeistung)) Self.y.lineEdit_6.setText(str(.altModell)) ![]() Self.y.lineEdit_5.setText(str(.strompreis)) Self.y.lineEdit_4.setText(str(.projektname)) Self.y.lineEdit_36.setText(str(.aufpreisLMS)) Self.y.lineEdit_3.setText(str(.firmenname)) With open(os.path.realpath(fname), "rb") as f: Self.showMessage('Sorry, an error has occurred while processing this file')įname, _ = QFileDialog.getOpenFileName(self, 'Open file', 'c:\\', Self.showMessage('This file doesn’t appear to be valid') If not os.path.isfile(fullpath) or not os.access(fullpath, os.R_OK): Given file, set file name for view and text for parserįullpath, type_ = QFileDialog.getOpenFileName(self, 'Open file for inspection', os.getenv('HOME')) "\nKey Id: " verified.key_id "\n\nTHE FILE IS CORRUPTED." "\n\nDetails :\n" verified.stderr, QMessageBox.warning(self, appname version "Bad Signature", "No signature found: " verified.stderr, QMessageBox.Ok) QMessageBox.warning(self, appname version "No signature found", If verified.valid is False and ername is None: "\nThe signature was created at " verified.creation_date "\n\nTrust :" ust_text, "\n\nFingerprint: " verified.fingerprint rmation(self, appname version "Good Signature", "sig Files (*.sig) asc Files (*.asc) All Files (*)")ĭata = os.path.splitext(filename).split("_") If fname and any(fname) and (type(fname) is tuple):įilename, _ = QFileDialog.getOpenFileName(self, # so perhaps we keep our current hack for now? # update: it's turned out that this behavior is due to compatibility # So we need this hack to make sure that fname is a string of a filename # PyQt5 documentation), but for some reason fname is a tuple. # HACK: fname is supposed to be a string (at least according to the # noinspection PyTypeChecker,P圜allB圜lassįname = QFileDialog.getOpenFileName(self, If self.last_file_path and self.last_file_type = ftype: _agl(())ĭef _get_filename_from_dialog(self, ftype='input'): _hwnd(())Įlif sys.platform = "darwin": # for MacOS _xwindow(())Įlif sys.platform = "win32": # for Windows If sys.platform = "linux2": # for Linux using the X Server # vlc, different platforms have different functions for this # you have to give the id of the QFrame (or similar object) to # (otherwise a video would be displayed in it's own window) # the media player has to be 'connected' to the QFrame # set the title of the track as window title Self, "Open File", os.path.expanduser("~")) Reply = msg.question(self, 'Message', question, msg.Yes, msg.No) Question = "Do you want to choose a custom list of domain specific common words?" Self.tag = (TextWorker(), QtCore.QThread()) Text = codecs.open(file_name, "r", "utf-8").read() Ret = QMessageBox.warning(self, "Warning", 'missing ffmpeg binaries, please download it from ' versione ' and paste it in /.qgis3/python/plugins/Video_UAV_Tracker/FFMPEG/ ', QMessageBox.Ok)ĭtNameFilters()įile_name = dialog.getOpenFileName(self, 'Open file') Self.GPXfile, _ = QFileDialog.getOpenFileName(self,"Select GPX file", "","All Files (*) Video File (*.gpx)", options=options) file, _ = QFileDialog.getOpenFileName(self,"Select Video File", "","All Files (*) Video File (*.mp4 *.avi *.ogv)", options=options) Options |= QFileDialog.DontUseNativeDialog ![]() Ffmpeg = os.path.dirname(_file_) '/FFMPEG/ffmpeg.exe'įfmpeg = os.path.dirname(_file_) '/FFMPEG/./ffmpeg' ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |