Skip to content

Commit

Permalink
Small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
fraguada committed Dec 4, 2020
1 parent 46755b9 commit b8376e4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion compute/py/SampleTkinter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This sample uses rhino3dm to create a brep from a sphere and then sends it to Co

```commandline
$ python3 -m venv venv
$ source venv/bin/activate
$ source venv/scripts/activate
$ pip install rhino3dm compute-rhino3d
$ python makemesh.py
```
Expand Down
14 changes: 1 addition & 13 deletions compute/py/SampleTkinter/makemesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,9 @@
import compute_rhino3d.Mesh
import compute_rhino3d.Util

auth_token = ""

top = Tkinter.Tk()
def onClickOk():
global auth_token
auth_token = auth.get()
top.destroy()
lbl = Tkinter.Label(top, text="Rhino Accounts auth token")
lbl.grid(row=0, column=0)
auth = Tkinter.Entry(top)
auth.grid(row=0, column=1)
btn = Tkinter.Button(top, text='Ok', command=onClickOk)
btn.grid(row=1, column=1)
top.mainloop()

compute_rhino3d.Util.authToken = auth_token
center = Point3d(250, 250, 0)
sphere = Sphere(center, 100)

Expand Down
1 change: 0 additions & 1 deletion rhino.inside/javascript/SampleRhinoInsideCEF/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Sample showing how to start Rhino and Grasshopper from a winforms app with a CEF

## Requirements
- [Rhino 7 for Windows](https://www.rhino3d.com/download/rhino-for-windows/7/latest)
- [node.js and npm](https://nodejs.org/en/) (tested on node version 12.18.0 and npm 6.14.4)

## Dependencies
- [CEFSharp](https://github.com/cefsharp/CefSharp) - [version 86.0.241] Used to host the UI, and javascript.
Expand Down
5 changes: 5 additions & 0 deletions rhino.inside/javascript/SampleRhinoInsideJavascriptLibs.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleRhinoInsideJavascript
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleRhinoInsideJavascriptTaskManagerLib", "SampleRhinoInsideJavascriptTaskManagerLib\SampleRhinoInsideJavascriptTaskManagerLib.csproj", "{B70ABEBE-DF8A-4960-82E4-97959F353738}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Docs", "Docs", "{D493F377-527B-418B-8BBE-00FCC8CBCF34}"
ProjectSection(SolutionItems) = preProject
README.md = README.md
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down

0 comments on commit b8376e4

Please sign in to comment.