testquestion

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LabelRadioGroup

type LabelRadioGroup struct {
	widget.RadioGroup
	// contains filtered or unexported fields
}

func NewLabelRadioGroup

func NewLabelRadioGroup(question *TestQuestion, options []string,
	change func(string)) *LabelRadioGroup

func (*LabelRadioGroup) Add added in v0.1.8

func (l *LabelRadioGroup) Add(options ...string)

func (*LabelRadioGroup) Answer

func (l *LabelRadioGroup) Answer() string

func (*LabelRadioGroup) SetSelect

func (l *LabelRadioGroup) SetSelect(keyPressed fyne.KeyName)

type TestQuestion

type TestQuestion struct {
	Question *testparts.GormQuestion
	Options  *LabelRadioGroup
	Answer   string
	// contains filtered or unexported fields
}

func NewTestQuestion

func NewTestQuestion(question *testparts.GormQuestion,
	allocTime time.Duration, next *widget.Button) *TestQuestion

func (*TestQuestion) Ask

func (q *TestQuestion) Ask(countDown *widget.ProgressBar, content *fyne.Container)

func (*TestQuestion) Correct added in v0.1.8

func (q *TestQuestion) Correct() bool

func (*TestQuestion) Show

func (q *TestQuestion) Show() *fyne.Container

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL