Creating buttons

Hi,

I want to create a chatroom in Wxpython that will get a dictionary from the server (e.g dict = { ‘Vinit Joshi’ : 1}) If the value of a key is 1, I will create a particular type of button(Online friend) and if the value is 0, I will create a different type of button (Offline button). Please guide me as to where I should hard-code a dictionary (for testing purposes) and how should I pass it to a function (say def createButton():). I am attaching the code for your perusal. Please help.

chatroom(Vinit).py (780 Bytes)