Compare commits
3 Commits
9f131a4019
...
80a1d916e1
Author | SHA1 | Date | |
---|---|---|---|
|
80a1d916e1 | ||
|
43ed231879 | ||
|
d056275c79 |
15
go/go.mod
Normal file
15
go/go.mod
Normal file
@@ -0,0 +1,15 @@
|
||||
module go_tui
|
||||
|
||||
go 1.19
|
||||
|
||||
require (
|
||||
github.com/gdamore/encoding v1.0.0 // indirect
|
||||
github.com/gdamore/tcell/v2 v2.4.1-0.20210905002822-f057f0a857a1 // indirect
|
||||
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
|
||||
github.com/mattn/go-runewidth v0.0.13 // indirect
|
||||
github.com/rivo/tview v0.0.0-20220307222120-9994674d60a8 // indirect
|
||||
github.com/rivo/uniseg v0.2.0 // indirect
|
||||
golang.org/x/sys v0.0.0-20210309074719-68d13333faf2 // indirect
|
||||
golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d // indirect
|
||||
golang.org/x/text v0.3.6 // indirect
|
||||
)
|
4
go/go.sum
Normal file
4
go/go.sum
Normal file
@@ -0,0 +1,4 @@
|
||||
github.com/gdamore/tcell/v2 v2.4.1-0.20210905002822-f057f0a857a1 h1:QqwPZCwh/k1uYqq6uXSb9TRDhTkfQbO80v8zhnIe5zM=
|
||||
github.com/gdamore/tcell/v2 v2.4.1-0.20210905002822-f057f0a857a1/go.mod h1:Az6Jt+M5idSED2YPGtwnfJV0kXohgdCBPmHGSYc1r04=
|
||||
github.com/rivo/tview v0.0.0-20220307222120-9994674d60a8 h1:xe+mmCnDN82KhC010l3NfYlA8ZbOuzbXAzSYBa6wbMc=
|
||||
github.com/rivo/tview v0.0.0-20220307222120-9994674d60a8/go.mod h1:WIfMkQNY+oq/mWwtsjOYHIZBuwthioY2srOmljJkTnk=
|
12
go/main.go
Normal file
12
go/main.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package main
|
||||
|
||||
import "github.com/rivo/tview"
|
||||
|
||||
func main() {
|
||||
box := tview.NewBox().
|
||||
SetBorder(true).
|
||||
SetTitle("Box Demo")
|
||||
if err := tview.NewApplication().SetRoot(box, true).Run(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
4
notes
4
notes
@@ -6,3 +6,7 @@
|
||||
|
||||
|
||||
https://profs.info.uaic.ro/~busaco/teach/courses/net/docs/NCURSES.html
|
||||
|
||||
https://www.textualize.io/blog/posts/7-things-about-terminals
|
||||
|
||||
|
||||
|
5
main.py → old/ex3.py
Executable file → Normal file
5
main.py → old/ex3.py
Executable file → Normal file
@@ -61,6 +61,10 @@ class Menu(object):
|
||||
curses.doupdate()
|
||||
|
||||
|
||||
def resist(menu):
|
||||
resistors_items = [("10R", curses.beep), ("10K", curses.beep), ("330R", curses.flash), ("57K", curses.flash)]
|
||||
resistorsMenu = Menu(resistors_items, menu)
|
||||
resistorsMenu.display()
|
||||
|
||||
|
||||
class MyApp(object):
|
||||
@@ -109,6 +113,7 @@ class MyApp(object):
|
||||
|
||||
# resistors_items = [("10R", curses.beep), ("10K", curses.beep), ("330R", curses.flash), ("57K", curses.flash)]
|
||||
# resistorsMenu = Menu(resistors_items, parts)
|
||||
# resistorsMenu.display()
|
||||
|
||||
components_items = [("Resistors", curses.beep), ("Capacitors", curses.beep), ("Coils", curses.flash), ("IC\'s", curses.flash)]
|
||||
componentsMenu = Menu(components_items, components)
|
Reference in New Issue
Block a user