This is my code:
import nigui
app.init()
var diceContainer = newLayoutContainer(Layout_Horizontal)
for i in 1..6:
var dieImage = newImage()
dieImage.loadFromFile("Dice" & $i & ".png")
var dieControl = newControl()
Thank you, Trustable.
How do I add images to a horizontal layout container using NiGui?
Thank you treeform. Can't wait for Fidget 1.0
Thank you all. Just by going through your answers, I am learning a lot.
Still learning Nim and was trying to solve this problem: [Write a function that
combines two lists by alternatingly taking elements, e.g. [a,b,c], [1,2,3] →
[a,1,b,2,c,3].](https://adriann.github.io/programming_problems.html)
I came up with this:
let
numberList = [1, 2, 3]
I found Nim when looking for a faster version of Python. Nim is as easy as
Python making it a good entry point for beginners.
I think it would be a good idea to target the young. Get the young using Nim
and in a couple of years, you have a generation that thinks that anything else
is just tedio