Skip to content

Commit

Permalink
Merge pull request #24 from matiasinsaurralde/master
Browse files Browse the repository at this point in the history
README: add syntax highlighting
  • Loading branch information
dontpanic92 authored May 13, 2017
2 parents 563d7b6 + 609fa44 commit 28cc5d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Usage

After importing `github.com/dontpanic92/wxGo/wx`, the following code will create an empty dialog with a "Hello World" as its caption.

```
```go
wx.NewApp()
f := wx.NewDialog(wx.NullWindow, -1, "Hello World")
f.ShowModal()
Expand All @@ -79,7 +79,7 @@ After importing `github.com/dontpanic92/wxGo/wx`, the following code will create

All the wx-Classes' objects can be created using `wx.NewCLASS`. Now let us add some controls on it :

```
```go
wx.NewApp()
f := wx.NewDialog(wx.NullWindow, -1, "Hello World")

Expand All @@ -99,7 +99,7 @@ All the wx-Classes' objects can be created using `wx.NewCLASS`. Now let us add s

And then we can bind an event on the checkbox :

```
```go
func checkboxClicked(e wx.Event) {
wx.MessageBox("Checkbox clicked!")
}
Expand Down

0 comments on commit 28cc5d3

Please sign in to comment.