basic

package
v0.0.0-...-151ce6e Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ONDelete = "delete"
	ONAdd    = "add"
	ONAction = "action"
)

Variables

View Source
var (
	Icons      icons
	BoldFont   *gui.QFont
	ItalicFont *gui.QFont
)
View Source
var WidgetsStyle string

Functions

func Button

func Button(text string) *widgets.QPushButton

Button renvoi un nouveau QPushButton.

func ButtonEnregistrer

func ButtonEnregistrer() *widgets.QPushButton

func Confirmation

func Confirmation(msg, labelButton, objectName string) bool

func Copy

func Copy(txt string)

Copy enregistre le texte dans le presse-papier

func Delay

func Delay(f func())

Delay éxécute la fonction donnée 100 ms après. Utile pour laisser Qt paindre une boite de dialogue.

func DelayExt

func DelayExt(f func(), ms int)

func Dialog

func Dialog(titre string) *widgets.QDialog

Dialog renvoie un dialogue avec le style et un layout installé.

func Dialog2

func Dialog2(titre string) *widgets.QDialog

Sans layout

func Frame

func Frame() *widgets.QFrame

Label renvoie une nouvelle QFrame.

func InitFont

func InitFont()

func InitIcons

func InitIcons(ressourcesPath string)

func Label

func Label(text string) *widgets.QLabel

Label renvoie un nouveau QLabel avec le texte fourni.

func NewProgressBar

func NewProgressBar(label string) *widgets.QProgressBar

func OpenURL

func OpenURL(url string)

func Paste

func Paste() string

Paste renvoie le texte du presse-papier

func ShowError

func ShowError(err error)

func ShowFile

func ShowFile(path string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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