Beispiel #1
0
 def setup_video_driver(self) -> None:
     self.video_drivers = VideoDriver.all_for_platform()
     names = [
         tr.preferences_video_driver(driver=video_driver_name_for_platform(d))
         for d in self.video_drivers
     ]
     self.form.video_driver.addItems(names)
     self.form.video_driver.setCurrentIndex(
         self.video_drivers.index(self.mw.pm.video_driver())
     )
Beispiel #2
0
 def setup_video_driver(self) -> None:
     self.video_drivers = VideoDriver.all_for_platform()
     names = [
         tr(TR.PREFERENCES_VIDEO_DRIVER,
            driver=video_driver_name_for_platform(d))
         for d in self.video_drivers
     ]
     self.form.video_driver.addItems(names)
     self.form.video_driver.setCurrentIndex(
         self.video_drivers.index(self.mw.pm.video_driver()))