def set_toolbar_visible(self, visible):
        layout = self.widget.layout()
        if layout.count() == 2:
            with self.geometry_guard():
                toolbar = layout.itemAt(0).widget()
                toolbar.setVisible(visible)

    #--------------------------------------------------------------------------
    # Private API
    #--------------------------------------------------------------------------
Trivial implementation of UserService.GetOAuthUser().
dataset/ETHPy150Open nucleic/enaml/enaml/qt/qt_mpl_canvas.py/QtMPLCanvas.set_toolbar_visible--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/user_service_stub.py/UserServiceStub._Dynamic_GetOAuthUser