def __init__(self):
        gtk.VBox.__init__(self)

        # request header
        expander = gtk.Expander(_('Request Header'))
        self.request_header_widget = HTTPHeaderWidget()
        expander.add(self.request_header_widget)
        self.pack_start(expander, False, True)
        expander.show_all()
        # request Body
        expander = gtk.Expander(_('Request Body'))
        expander.add(gtk.Label('PLACEHOLDER'))
        self.pack_start(expander, False, True)
        expander.show_all()
        # response header
        expander = gtk.Expander(_('Response Header'))
        self.response_header_widget = HTTPHeaderWidget()
        expander.add(self.response_header_widget)
        self.pack_start(expander, False, True)
        expander.show_all()
        # response body
        expander = gtk.Expander(_('Response Body'))
        expander.add(gtk.Label('PLACEHOLDER'))
        self.pack_start(expander, False, True)
        expander.show_all()
class ProxyRecordWidget(gtk.VBox):

    def __init__(self):
        gtk.VBox.__init__(self)

        # request header
        expander = gtk.Expander(_('Request Header'))
        self.request_header_widget = HTTPHeaderWidget()
        expander.add(self.request_header_widget)
        self.pack_start(expander, False, True)
        expander.show_all()
        # request Body
        expander = gtk.Expander(_('Request Body'))
        expander.add(gtk.Label('PLACEHOLDER'))
        self.pack_start(expander, False, True)
        expander.show_all()
        # response header
        expander = gtk.Expander(_('Response Header'))
        self.response_header_widget = HTTPHeaderWidget()
        expander.add(self.response_header_widget)
        self.pack_start(expander, False, True)
        expander.show_all()
        # response body
        expander = gtk.Expander(_('Response Body'))
        expander.add(gtk.Label('PLACEHOLDER'))
        self.pack_start(expander, False, True)
        expander.show_all()



    def set_record(self, record):
        if hasattr(record, 'request_headers'):
            self.request_header_widget.set_headers(record.request_headers)
        if hasattr(record, 'response_headers'):
            self.response_header_widget.set_headers(record.response_headers)