mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-04 13:04:44 +00:00
x11 example compiles again; updated python wrapper; compiler supports variables in DLLs
This commit is contained in:
@@ -9,4 +9,3 @@ Py_Initialize()
|
||||
discard PyRun_SimpleString("from time import time,ctime\L" &
|
||||
"print 'Today is',ctime(time())\L")
|
||||
Py_Finalize()
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ const
|
||||
WINDOW_HEIGHT = 300
|
||||
|
||||
var
|
||||
width, height: cint
|
||||
width, height: cuint
|
||||
display: PDisplay
|
||||
screen: cint
|
||||
depth: int
|
||||
@@ -29,10 +29,10 @@ proc create_window =
|
||||
XBlackPixel(display, screen),
|
||||
XWhitePixel(display, screen))
|
||||
size_hints.flags = PSize or PMinSize or PMaxSize
|
||||
size_hints.min_width = width
|
||||
size_hints.max_width = width
|
||||
size_hints.min_height = height
|
||||
size_hints.max_height = height
|
||||
size_hints.min_width = width.cint
|
||||
size_hints.max_width = width.cint
|
||||
size_hints.min_height = height.cint
|
||||
size_hints.max_height = height.cint
|
||||
discard XSetStandardProperties(display, win, "Simple Window", "window",
|
||||
0, nil, 0, addr(size_hints))
|
||||
discard XSelectInput(display, win, ButtonPressMask or KeyPressMask or
|
||||
|
||||
Reference in New Issue
Block a user