def __init__(self, parent):
        version = str(GetVersion()) + " " + GetStatus(
        ) + "  (build %s)" % GetBuildNumber()
        wx.Dialog.__init__(self, parent, -1, version)
        bmp = icons.getSplashBitmap()
        info = "Version: %s \nPlease visit www.accessgrid.org for more information" % version
        self.ReadLicenseFile()

        self.SetSize(wx.Size(bmp.GetWidth() + 20, 400))

        self.panel = wx.Panel(self, -1, size=wx.Size(bmp.GetWidth() + 20, 400))
        self.image = wx.StaticBitmap(self.panel,
                                     -1,
                                     bmp,
                                     size=wx.Size(bmp.GetWidth(),
                                                  bmp.GetHeight()))
        self.text = wx.StaticText(self.panel, -1, info)
        self.text.SetBackgroundColour("WHITE")
        self.license = wx.TextCtrl(self.panel,
                                   -1,
                                   self.licenseText,
                                   size=wx.Size(bmp.GetWidth() - 10, 200),
                                   style=wx.TE_MULTILINE)
        self.okButton = wx.Button(self.panel, wx.ID_OK, "Ok")
        self.panel.SetBackgroundColour("WHITE")

        self.okButton.SetDefault()
        self.okButton.SetFocus()

        self.__layout()
Beispiel #2
0
    def __init__(self, parent):
        version = str(GetVersion()) + " "+GetStatus() + "  (build %s)" % GetBuildNumber()
        wx.Dialog.__init__(self, parent, -1, version)
        bmp = icons.getSplashBitmap()
        info = "Version: %s \nPlease visit www.accessgrid.org for more information" %version
        self.ReadLicenseFile()

        
        self.SetSize(wx.Size(bmp.GetWidth()+20, 400))
        
        self.panel = wx.Panel(self, -1, size = wx.Size(bmp.GetWidth()+20, 400))
        self.image = wx.StaticBitmap(self.panel, -1, bmp,
                                    size = wx.Size(bmp.GetWidth(), bmp.GetHeight()))
        self.text = wx.StaticText(self.panel, -1, info)
        self.text.SetBackgroundColour("WHITE")
        self.license = wx.TextCtrl(self.panel, -1, self.licenseText,
                                  size = wx.Size(bmp.GetWidth()-10, 200),
                                  style = wx.TE_MULTILINE)
        self.okButton = wx.Button(self.panel, wx.ID_OK, "Ok" )
        self.panel.SetBackgroundColour("WHITE")

        self.okButton.SetDefault()
        self.okButton.SetFocus()

        self.__layout()
def ProgressDialogTest():
    maxSize = 100

    dlg = ProgressDialog(None, icons.getSplashBitmap(), 100, "VERSION")
    dlg.Show()

    count = 0
    while count < maxSize:
        count = count + 1
        wx.Sleep(0.2)
        dlg.UpdateGauge('update ' + str(count), count)

    dlg.Destroy()
Beispiel #4
0
def ProgressDialogTest():
    maxSize = 100
     
    dlg = ProgressDialog(None, icons.getSplashBitmap(),100, "VERSION")
    dlg.Show()

    count = 0
    while count < maxSize:
        count = count + 1
        wx.Sleep(0.2)
        dlg.UpdateGauge('update '+ str(count), count)

    dlg.Destroy()
Beispiel #5
0
#-----------------------------------------------------------------------------
"""
"""
__revision__ = "$Id: VenueClient.py,v 1.288 2007-09-19 16:45:32 turam Exp $"


from AccessGrid.UIUtilities import ProgressDialog, MessageDialog, SetIcon
from AccessGrid import icons
import wx
from AccessGrid.Version import GetVersion, GetStatus
from AccessGrid.Preferences import Preferences

# Display the progress dialog as soon as possible
wxapp = wx.PySimpleApp(clearSigInt=0)
versionText = "Version %s %s" % (str(GetVersion()), str(GetStatus()) )
progressDialog = ProgressDialog(None,icons.getSplashBitmap(), 100, versionText)
progressDialog.Show(1)
progressDialog.UpdateGauge('Starting VenueClient',10)


# Standard Imports
import os
import sys
import signal

from optparse import Option

# GUI related imports

try:
    from twisted.internet import _threadedselect as threadedselectreactor
Beispiel #6
0
# Licence:     See COPYING.txt
#-----------------------------------------------------------------------------
"""
"""
__revision__ = "$Id: VenueClient.py,v 1.288 2007-09-19 16:45:32 turam Exp $"

from AccessGrid.UIUtilities import ProgressDialog, MessageDialog, SetIcon
from AccessGrid import icons
import wx
from AccessGrid.Version import GetVersion, GetStatus
from AccessGrid.Preferences import Preferences

# Display the progress dialog as soon as possible
wxapp = wx.PySimpleApp(clearSigInt=0)
versionText = "Version %s %s" % (str(GetVersion()), str(GetStatus()))
progressDialog = ProgressDialog(None, icons.getSplashBitmap(), 100,
                                versionText)
progressDialog.Show(1)
progressDialog.UpdateGauge('Starting VenueClient', 10)

# Standard Imports
import os
import sys
import signal

from optparse import Option

# GUI related imports

try:
    from twisted.internet import _threadedselect as threadedselectreactor