Commits

Pavlo Shchelokovskyy  committed b57cef9

added __name__ boilerplate

  • Participants
  • Parent commits de04aa3

Comments (0)

Files changed (1)

File videodiff.py

                 )
         out, err = self.player.communicate(cmd)
         return out
-    
-app = wx.PySimpleApp()
-frame = VideoFrame(None, -1)
-frame.Show()
-app.MainLoop()
+
+if __name__ == '__main__':
+    app = wx.PySimpleApp()
+    frame = VideoFrame(None, -1)
+    frame.Show()
+    app.MainLoop()