Request from a beginner

Hello.
I have been playing and learning blender for 6 month now and i have just started to looking at python. Yesterday i tried to do a menu for a rig like in riggify when there is buttons to control what is being shown. I don’t know what I’m doing wrong but it’s clearly not working.:confused: I’m wondering if someone can tell me what have changed since this tutorial was made so I can make basic buttons and sliders. I have tried it and tried change some code based on other ting I’ve read on blender wiki and other places.
If I can get templates I think I’ll be able to sort it out( If it is according to the tutorial).
Cheers!

Have you seen this tutorial?

Now I have : )
Looks good but what if I can get the operator with layer data to toggle. I know how to check if a layer is active, but I can’t toggle its visibility.

Sent from my Nexus 7 using Tapatalk 4