mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
use widget.View.SetText to print
This commit is contained in:
@@ -40,10 +40,9 @@ func (widget *Widget) Refresh() {
|
||||
|
||||
widget.UpdateRefreshedAt()
|
||||
widget.execute()
|
||||
widget.View.Clear()
|
||||
widget.View.SetTitle(fmt.Sprintf(" %s ", widget))
|
||||
|
||||
fmt.Fprintf(widget.View, "%s", widget.result)
|
||||
widget.View.SetText(fmt.Sprintf("%s", widget.result))
|
||||
}
|
||||
|
||||
func (widget *Widget) String() string {
|
||||
|
||||
Reference in New Issue
Block a user