Example #1
0
    def test122(self):
        """
        def __init__(self, controller, glade_filename=None,
            glade_top_widget_name=None, parent_view=None, register=True):
        def __init__(self, model, spurious=False):
        """
        gtkmvc3.require("1.0.0")

        self.assertRaises(TypeError, lambda: gtkmvc3.Controller(
            self.m))
        self.assertRaises(NotImplementedError, lambda: gtkmvc3.Controller(
            self.m, False))
Example #2
0
#  version 2 of the License, or (at your option) any later version.
#
#  gtkmvc3 is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
#  Lesser General Public License for more details.
#
#  You should have received a copy of the GNU Lesser General Public
#  License along with this library; if not, write to the Free Software
#  Foundation, Inc., 51 Franklin Street, Fifth Floor,
#  Boston, MA 02110, USA.
#
#  For more information on gtkmvc3 see <https://github.com/roboogle/gtkmvc3>
#  or email to the author Roberto Cavada <*****@*****.**>.
#  Please report bugs to <https://github.com/roboogle/gtkmvc3/issues>
#  or to <*****@*****.**>.

# This module is used only as a utility to import gtkmvc3 when not
# installed.

if __name__ != "__main__":
    import os.path
    import sys
    top_dir = os.path.dirname(os.path.abspath("../.."))
    if os.path.exists(os.path.join(top_dir, "gtkmvc3")):
        sys.path = [top_dir] + sys.path
    import gtkmvc3

    gtkmvc3.require("1.0.0")
pass
Example #3
0
#
#  gtkmvc3 is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
#  Lesser General Public License for more details.
#
#  You should have received a copy of the GNU Lesser General Public
#  License along with this library; if not, write to the Free Software
#  Foundation, Inc., 51 Franklin Street, Fifth Floor,
#  Boston, MA 02110, USA.
#
#  For more information on gtkmvc3 see <https://github.com/roboogle/gtkmvc3>
#  or email to the author Roberto Cavada <*****@*****.**>.
#  Please report bugs to <https://github.com/roboogle/gtkmvc3/issues>
#  or to <*****@*****.**>.


# This module is used only as a utility to import gtkmvc3 when not
# installed.

if __name__ != "__main__":
    try:
        import gtkmvc3
    except:
        import os.path; import sys
        top_dir = os.path.dirname(os.path.abspath(".."))
        sys.path = [top_dir] + sys.path
        import gtkmvc3

    gtkmvc3.require("1.0.0")
Example #4
0
def check_requirements():
    gtkmvc3.require("1.0.0")
    return
Example #5
0
def check_requirements():
    gtkmvc3.require("1.0.0")
    return