Is it possible to set any card as the current card and display it?

is it possible to set any card as the current card and display it?
Thank you for your help

Possibly … but it will be easier to answer if you explain more about what you are trying to do – especially what you mean by “current” card and “display it.”

# import the main window object (mw) from aqt
from aqt import mw
# import the "show info" tool from utils.py
from aqt.utils import showInfo, qconnect
# import all of the Qt GUI library
from aqt.qt import *
from aqt.reviewer import Reviewer
oldEnterKey = Reviewer.onEnterKey
# We're going to add a menu item below. First we want to create a function to
# be called when the menu item is activated.
def testFunction() -> None:
    id=1506135952541
    card = mw.col.get_card(id)
    #how can I show this card's question?
action = QAction("test", mw)
action.setShortcut('Ctrl+j') #不放在菜单里,快捷键无效
# set it to call testFunction when it's clicked
qconnect(action.triggered, testFunction)
#另一种用法  action.triggered.connect(testFunction)
# and add it to the tools menu
mw.form.menuTools.addAction(action)
# [1506135952541, 1506135952764, 1506135952871, 1506135952894, 1506135952977, 1506135952991, 1506135953090, 1506135953109, 1506135953121, 150613595322

I’d like to implement a similar slideshow feature in the reviewer window as in the browser

Is this a question related to an add-on you’re developing?

Yes,thank you

I read your post about politeness issues due to the use of translation software, I understand your thoughts, I am trying to learn English, thank you

1 Like

:+1:t4: I’m going to shift this to the Development forum, where I think you’re more likely to get a useful answer!

Thank you!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.