예제 #1
0
    def getAppQIcon( self ):
        wb_diff_images.getQIcon( 'wb.png' )

    def createPreferencesManager( self ):
        return PreferencesManager(
                    self.log,
                    wb_platform_specific.getPreferencesFilename() )

    def createMainWindow( self ):
        self.file1 = self.all_positional_args[0]
        self.file2 = self.all_positional_args[1]

        return wb_diff_side_by_side_view.DiffSideBySideView( self, None, self.file1, self.file1, self.file2, self.file2 )

preferences_scheme = (
    wb_preferences.Scheme(
        wb_preferences.scheme_nodes
    )
)


class PreferencesManager(wb_preferences.PreferencesManager):
    def __init__( self, log, filename ):
        super().__init__( log, filename, preferences_scheme, wb_preferences.Preferences )

def createDiffApp( argv ):
    return WbDiff_App( argv )

if __name__ == '__main__':
    sys.exit( wb_main.main( createDiffApp, sys.argv ) )
예제 #2
0
    def createMainWindow(self):
        if len(self.all_positional_args) == 2:
            self.file1 = self.all_positional_args[0]
            self.file2 = self.all_positional_args[1]

        else:
            self.file1 = '/dev/null'
            self.file2 = '/dev/null'

        return wb_diff_side_by_side_view.DiffSideBySideView(
            self, None, 'wb-diff', self.file1, self.file1, self.file2,
            self.file2)


preferences_scheme = (xml_preferences.Scheme(wb_preferences.scheme_nodes))


class PreferencesManager(wb_preferences.PreferencesManager):
    def __init__(self, log, filename):
        super().__init__(log, filename, preferences_scheme,
                         wb_preferences.Preferences)


def createDiffApp(argv):
    return WbDiff_App(argv)


if __name__ == '__main__':
    sys.exit(wb_main.main(createDiffApp, sys.argv))
예제 #3
0
#!/usr/bin/python3
'''
 ====================================================================
 Copyright (c) 2016 Barry A Scott.  All rights reserved.

 This software is licensed as described in the file LICENSE.txt,
 which you should have received as part of this distribution.

 ====================================================================

    wb_scm_main.py

'''
import sys

MIN_SUPPORTED_PYTHON_VERSION = (3, 5)
if sys.version_info < MIN_SUPPORTED_PYTHON_VERSION:
    print('Error: Must be run using pthon %d.%d or newer' %
          MIN_SUPPORTED_PYTHON_VERSION)
    sys.exit(9)

import wb_main
import wb_scm_app

if __name__ == '__main__':
    sys.exit(wb_main.main(wb_scm_app.WbScmApp, sys.argv))
예제 #4
0
#!/usr/bin/python3
'''
 ====================================================================
 Copyright (c) 2016 Barry A Scott.  All rights reserved.

 This software is licensed as described in the file LICENSE.txt,
 which you should have received as part of this distribution.

 ====================================================================

    wb_scm_main.py

'''
import sys
MIN_SUPPORTED_PYTHON_VERSION = (3, 5)
if sys.version_info < MIN_SUPPORTED_PYTHON_VERSION:
    print( 'Error: Must be run using pthon %d.%d or newer' % MIN_SUPPORTED_PYTHON_VERSION )
    sys.exit( 9 )

import wb_main
import wb_scm_app

if __name__ == '__main__':
    sys.exit( wb_main.main( wb_scm_app.WbScmApp, sys.argv ) )