mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
modal groups and study options
This commit is contained in:
parent
ae9a21167b
commit
6d9f0a5c72
2 changed files with 3 additions and 4 deletions
|
@ -5,7 +5,7 @@
|
||||||
from PyQt4.QtCore import *
|
from PyQt4.QtCore import *
|
||||||
from PyQt4.QtGui import *
|
from PyQt4.QtGui import *
|
||||||
import aqt
|
import aqt
|
||||||
from aqt.utils import showInfo, getOnlyText, maybeHideClose
|
from aqt.utils import showInfo, getOnlyText
|
||||||
|
|
||||||
COLNAME = 0
|
COLNAME = 0
|
||||||
COLOPTS = 1
|
COLOPTS = 1
|
||||||
|
@ -21,6 +21,7 @@ class Groups(QDialog):
|
||||||
self.mw = mw
|
self.mw = mw
|
||||||
self.form = aqt.forms.groups.Ui_Dialog()
|
self.form = aqt.forms.groups.Ui_Dialog()
|
||||||
self.form.setupUi(self)
|
self.form.setupUi(self)
|
||||||
|
self.setWindowModality(Qt.WindowModal)
|
||||||
self.loadTable()
|
self.loadTable()
|
||||||
self.addButtons()
|
self.addButtons()
|
||||||
self.exec_()
|
self.exec_()
|
||||||
|
@ -78,7 +79,6 @@ class Groups(QDialog):
|
||||||
self.connect(self.form.buttonBox,
|
self.connect(self.form.buttonBox,
|
||||||
SIGNAL("helpRequested()"),
|
SIGNAL("helpRequested()"),
|
||||||
lambda: aqt.openHelp("Groups"))
|
lambda: aqt.openHelp("Groups"))
|
||||||
maybeHideClose(box)
|
|
||||||
|
|
||||||
def onSelectAll(self):
|
def onSelectAll(self):
|
||||||
for i in self.items:
|
for i in self.items:
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
from PyQt4.QtCore import *
|
from PyQt4.QtCore import *
|
||||||
from PyQt4.QtGui import *
|
from PyQt4.QtGui import *
|
||||||
from aqt.utils import maybeHideClose
|
|
||||||
import datetime, time, aqt
|
import datetime, time, aqt
|
||||||
|
|
||||||
class StudyOptions(QDialog):
|
class StudyOptions(QDialog):
|
||||||
|
@ -13,6 +12,7 @@ class StudyOptions(QDialog):
|
||||||
self.mw = mw
|
self.mw = mw
|
||||||
self.form = aqt.forms.studyopts.Ui_Dialog()
|
self.form = aqt.forms.studyopts.Ui_Dialog()
|
||||||
self.form.setupUi(self)
|
self.form.setupUi(self)
|
||||||
|
self.setWindowModality(Qt.WindowModal)
|
||||||
self.setup()
|
self.setup()
|
||||||
self.load()
|
self.load()
|
||||||
self.exec_()
|
self.exec_()
|
||||||
|
@ -28,7 +28,6 @@ class StudyOptions(QDialog):
|
||||||
self.connect(self.form.buttonBox,
|
self.connect(self.form.buttonBox,
|
||||||
SIGNAL("helpRequested()"),
|
SIGNAL("helpRequested()"),
|
||||||
lambda: aqt.openHelp("StudyOptions"))
|
lambda: aqt.openHelp("StudyOptions"))
|
||||||
maybeHideClose(self.form.buttonBox)
|
|
||||||
|
|
||||||
def load(self):
|
def load(self):
|
||||||
f = self.form
|
f = self.form
|
||||||
|
|
Loading…
Reference in a new issue