Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F133740
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
View Options
diff --git a/terminal/channel.go b/terminal/channel.go
new file mode 100644
index 0000000..2480aed
--- /dev/null
+++ b/terminal/channel.go
@@ -0,0 +1,12 @@
+package main
+
+import (
+ "fmt"
+)
+
+func sum(s []int, c chan int) {
+ sumOfNum := 0
+ for _, v := range s {
+
+ }
+}
diff --git a/test/test.go b/test/test.go
index 6b5a59d..68e4b5e 100644
--- a/test/test.go
+++ b/test/test.go
@@ -1,51 +1,58 @@
package main
import (
"github.com/lxn/walk"
. "github.com/lxn/walk/declarative"
"strings"
+ "os"
)
+
+
+
+
func main() {
var inTE, outTE *walk.TextEdit
MainWindow{
Title: "Login",
MinSize: Size{350, 200},
Layout: VBox{},
Children: []Widget{
HSplitter{
Children: []Widget{
Label{ Text: "Username"},
+ LineEdit{ },
//TextEdit{AssignTo: &inTE},
- TextEdit{AssignTo: &outTE, ReadOnly: true},
//TextEdit{AssignTo: &inTE, ReadOnly: false},
//TextEdit{AssignTo: &inTE},
},
},
HSplitter{
Children: []Widget{
Label{ Text: "Password"},
//TextEdit{AssignTo: &inTE},
- TextEdit{AssignTo: &outTE, ReadOnly: true},
+ LineEdit{PasswordMode: true, },
//TextEdit{AssignTo: &inTE, ReadOnly: false},
//TextEdit{AssignTo: &inTE},
},
},
PushButton{
Text: "Cancel",
OnClicked: func() {
outTE.SetText(strings.ToUpper(inTE.Text()))
+ os.Exit(0)
},
},
PushButton{
Text: "Login",
OnClicked: func() {
outTE.SetText(strings.ToUpper(inTE.Text()))
+ os.Exit(0)
},
},
},
}.Run()
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Nov 22, 5:08 PM (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14648
Default Alt Text
(1 KB)
Attached To
rST sshtunnel
Event Timeline
Log In to Comment