IDEFrame.py
changeset 1765 ccf59c1f0b45
parent 1763 bcc07ff2362c
child 1766 c1e5b9f19483
--- a/IDEFrame.py	Thu Aug 17 15:43:25 2017 +0300
+++ b/IDEFrame.py	Thu Aug 17 16:26:32 2017 +0300
@@ -296,7 +296,7 @@
     split = None
     for idx, tab in enumerate(tabs):
         if len(tab["pages"]) == 0:
-            raise ValueError, "Not possible"
+            raise ValueError("Not possible")
         if tab["size"][0] == rect.width:
             if tab["pos"][1] == rect.y:
                 split = (wx.TOP, float(tab["size"][1]) / float(rect.height))
@@ -820,7 +820,7 @@
         if isinstance(tabs, ListType):
             if len(tabs) == 0:
                 return
-            raise ValueError, "Not supported"
+            raise ValueError("Not supported")
 
         if "split" in tabs:
             self.LoadTabLayout(notebook, tabs["others"])