card layout

This commit is contained in:
Damien Elmes 2011-04-03 21:18:33 +09:00
parent cbbb5fd363
commit ac35d8330b

View file

@ -705,8 +705,12 @@ class Editor(object):
self.htmlEdit.setShown(toggle)
def onCardLayout(self):
self.saveFields()
ui.clayout.CardLayout(self.parent, self, self.fact, self.card)
from aqt.clayout import CardLayout
if self.card:
type = 1; ord = self.card.ord
else:
type = 0; ord = 0
CardLayout(self.mw, self.fact, type=type, ord=ord, parent=self.widget)
# FIXME: in some future version, we should use a different delimiter, as
# [sound] et al conflicts