For anyone having the same problem, you shouldn't add button as a child of another button. Add it as a child of a control node. There are some minor syntax mistakes also in my code. So here is how it looks now, it still has problems like rotating it, but visibility is ok.
extends Control
var arg=[]
func _ready():
arg.resize(76)
for i in range(arg.size()):
var button = TextureButton.new()
button.set_rotation_degrees(0)
button.set_size(Vector2(64,64))
button.texture_normal = load("res://cijev.png");
button.connect("pressed", self, "myrotate", [i])
arg.insert(i, button)
add_child(arg[i])
setposition(i)