Somethimes when we need to build a great number of php -gtk object can be a hard work if we are programming all the code by hand.
Work with coordinates and object positions can simplify the work and save time on development process.
On ther next code snnipet i will tech you how to generate dynamic button using coordinates process.
Follows the code
The result of code
Hope it´s useful