NiGui: adding images to a layout container

2023-04-10 Thread herdingSheep
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()

NiGui: adding images to a layout container

2023-04-10 Thread herdingSheep
Thank you, Trustable.

NiGui: adding images to a layout container

2023-04-09 Thread herdingSheep
How do I add images to a horizontal layout container using NiGui?

Beginer problem: Combine and alternate list

2021-09-14 Thread herdingSheep
Thank you treeform. Can't wait for Fidget 1.0

Beginer problem: Combine and alternate list

2021-09-13 Thread herdingSheep
Thank you all. Just by going through your answers, I am learning a lot.

Beginer problem: Combine and alternate list

2021-09-13 Thread herdingSheep
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]

How to make Nim more popular

2021-08-25 Thread herdingSheep
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