Module GUI2Exe :: Class GUI2Exe
[hide private]
[frames] | no frames]

Class GUI2Exe

source code

     object --+                    
              |                    
wx._core.Object --+                
                  |                
wx._core.EvtHandler --+            
                      |            
        wx._core.Window --+        
                          |        
 wx._windows.TopLevelWindow --+    
                              |    
              wx._windows.Frame --+
                                  |
                                 GUI2Exe

Instance Methods [hide private]
  __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE)
Default wx.Frame class constructor.
  CreateBar(self)
Creates the GUI2Exe status bar.
  MenuData(self)
Handles all the information used to build the menu bar.
  CreateMenu(self, menuData)
Creates a menu based on input menu data.
  CreateMenuBar(self)
Creates the main frame menu bar.
  BuildNBImageList(self)
Builds a fake image list for wx.aui.AuiNotebook.
  SetProperties(self)
Sets the main frame properties (title, icon...).
  SetAllFlags(self)
Sets all the fancy flags for wxAUI and friends.
  CheckForDatabase(self)
Checks if a database exists.
  BindEvents(self)
Binds all the events related to GUI2Exe.
  ReadConfigurationFile(self)
Reads the default configuration file (default project initialization).
  OnNewProject(self, event)
A new project is being created.
  OnSwitchDB(self, event)
Switch to another project database.
  OnSaveProject(self, event)
Saves the current project.
  OnExportSetup(self, event)
Exports the Setup.py file.
  OnClose(self, event)
Handles the wx.EVT_CLOSE event for the main frame.
  OnPageClosing(self, event)
Handles the wx.aui.EVT_AUINOTEBOOK_PAGE_CLOSE event.
  OnPageChanging(self, event)
Handles the wx.aui.EVT_AUINOTEBOOK_PAGE_CHANGING event.
  OnAutoSave(self, event)
Enables/Disables the AutoSave feature.
  OnDeleteBuild(self, event)
Enables/Disables the automatic removal of the "build" folder.
  OnTestExecutable(self, event)
Test the compiled executable.
  OnCustomCode(self, event)
Allows the user to add custom code to the Setup.py file.
  OnViewSetup(self, event)
Allows the user to see the Setup.py file.
  OnViewMissing(self, event)
Shows the missing modules and dlls.
  OnCompilerSwitches(self, event)
Shows the different compiler switches/options.
  OnTipsAndTricks(self, event)
Shows the compilation tips and tricks.
  OnSaveConfig(self, event)
Saves the current GUI configuration, in terms of panes positions.
  OnRestorePerspective(self, event)
Restore the selected GUI perspective.
  OnHelp(self, event)
Shows the GUI2Exe help file.
  OnAPI(self, event)
Shows the GUI2Exe API help file.
  OnCheckUpgrade(self, event)
Checks for a possible upgrade of GUI2Exe.
  OnAbout(self, event)
Shows the about dialog for GUI2Exe.
  OnProcessTimer(self, event)
Handles the wx.EVT_TIMER event for the main frame.
  OnProcessEnded(self, event)
Handles the wx.EVT_END_PROCESS for the main frame.
  OnExeTimer(self, event)
Handles the wx.EVT_TIMER event for the main frame.
  HandlePageClosing(self, selection, event)
  SaveProject(self, project)
Saves the current project.
  UpdatePageBitmap(self, pageName, pageIcon, selection=None)
Updates the wx.aui.AuiNotebook page image and text, to reflect the current project state (saved/unsaved).
  RunError(self, kind, msg, sendMessage=False)
An utility method that shows a message dialog with different functionalities depending on the input.
  AddNewProject(self, treeItem, projectName)
Adds a new project to the current center pane.
  LoadProject(self, treeItem, projectName)
Loads a project in the center pane.
  RenameProject(self, treeItem, oldName, newName)
The user has renamed the project in the project tree control.
  Project(self, project, treeItem, isNew)
Auxiliary method used to actually add a page to the center pane.
  WalkAUIPages(self, treeItem)
Walks over all the opened page in the center pane.
  IsAlreadyOpened(self, treeItem)
Looks if a page is already opened.
  CloseAssociatedPage(self, treeItem)
A method used to close a wx.aui.AuiNotebook page when an item in the project tree is deleted.
  ReassignPageItem(self, oldItem, newItem)
Reassigns an item to an opened page after a drag and drop operation.
  FillStatusBar(self)
Fills the statusbar fields with different information.
  CreateBitmap(self, fileName)
Utility function to create bitmap passing a filename.
  GetCurrentPage(self)
Returns the current LabelBook page.
  GetCurrentBook(self)
Returns the current wx.aui.AuiNotebook page (a LabelBook).
  GetCurrentProject(self)
Returns the current project associated to a LabelBook.
  RunCompile(self, view, run)
Auxiliary method.
  KillCompile(self)
Kills (or tries to) the compilation process.
  SuccessfulCompilation(self, project, ask=True)
Assumes that the compilation process was successful and tries to test the new exe file.
  ExamineLogFile(self, logFile)
Examine a log file, created by an executable that crashed fpr some reason.
  SendMessage(self, kind, message)
Sends a message to the log window at the bottom.
  GetVersion(self)
Return the current GUI2Exe version.

Inherited from wx._windows.Frame: Command, Create, CreateStatusBar, CreateToolBar, DoGiveHelp, DoMenuUpdates, GetMenuBar, GetStatusBar, GetStatusBarPane, GetToolBar, PopStatusText, ProcessCommand, PushStatusText, SendSizeEvent, SetMenuBar, SetStatusBar, SetStatusBarPane, SetStatusText, SetStatusWidths, SetToolBar

Inherited from wx._windows.TopLevelWindow: CenterOnScreen, CentreOnScreen, EnableCloseButton, GetDefaultItem, GetIcon, GetTitle, GetTmpDefaultItem, Iconize, IsActive, IsAlwaysMaximized, IsFullScreen, IsIconized, IsMaximized, MacGetMetalAppearance, MacSetMetalAppearance, Maximize, RequestUserAttention, Restore, SetDefaultItem, SetIcon, SetIcons, SetShape, SetTitle, SetTmpDefaultItem, ShowFullScreen, __repr__

Inherited from wx._core.Window: AcceptsFocus, AcceptsFocusFromKeyboard, AddChild, AdjustForLayoutDirection, AssociateHandle, CacheBestSize, CanSetTransparent, CaptureMouse, Center, CenterOnParent, Centre, CentreOnParent, ClearBackground, ClientToScreen, ClientToScreenXY, Close, ConvertDialogPointToPixels, ConvertDialogSizeToPixels, ConvertPixelPointToDialog, ConvertPixelSizeToDialog, DLG_PNT, DLG_SZE, Destroy, DestroyChildren, Disable, DissociateHandle, DragAcceptFiles, Enable, FindWindowById, FindWindowByName, Fit, FitInside, Freeze, GetAcceleratorTable, GetAdjustedBestSize, GetAutoLayout, GetBackgroundColour, GetBackgroundStyle, GetBestFittingSize, GetBestSize, GetBestSizeTuple, GetBestVirtualSize, GetBorder, GetCaret, GetCharHeight, GetCharWidth, GetChildren, GetClientAreaOrigin, GetClientRect, GetClientSize, GetClientSizeTuple, GetConstraints, GetContainingSizer, GetCursor, GetDefaultAttributes, GetDropTarget, GetEffectiveMinSize, GetEventHandler, GetExtraStyle, GetFont, GetForegroundColour, GetFullTextExtent, GetGrandParent, GetHandle, GetHelpText, GetHelpTextAtPoint, GetId, GetLabel, GetLayoutDirection, GetMaxHeight, GetMaxSize, GetMaxWidth, GetMinHeight, GetMinSize, GetMinWidth, GetName, GetParent, GetPosition, GetPositionTuple, GetRect, GetScreenPosition, GetScreenPositionTuple, GetScreenRect, GetScrollPos, GetScrollRange, GetScrollThumb, GetSize, GetSizeTuple, GetSizer, GetTextExtent, GetThemeEnabled, GetToolTip, GetTopLevelParent, GetUpdateClientRect, GetUpdateRegion, GetValidator, GetVirtualSize, GetVirtualSizeTuple, GetWindowBorderSize, GetWindowStyle, GetWindowStyleFlag, GetWindowVariant, HasCapture, HasFlag, HasMultiplePages, HasScrollbar, HasTransparentBackground, Hide, HitTest, HitTestXY, InheritAttributes, InheritsBackgroundColour, InitDialog, InvalidateBestSize, IsBeingDeleted, IsDoubleBuffered, IsEnabled, IsExposed, IsExposedPoint, IsExposedRect, IsFrozen, IsRetained, IsShown, IsShownOnScreen, IsTopLevel, Layout, LineDown, LineUp, Lower, MakeModal, Move, MoveAfterInTabOrder, MoveBeforeInTabOrder, MoveXY, Navigate, OnPaint, PageDown, PageUp, PopEventHandler, PopupMenu, PopupMenuXY, PostCreate, PrepareDC, PushEventHandler, Raise, Refresh, RefreshRect, RegisterHotKey, ReleaseMouse, RemoveChild, RemoveEventHandler, Reparent, ScreenToClient, ScreenToClientXY, ScrollLines, ScrollPages, ScrollWindow, SetAcceleratorTable, SetAutoLayout, SetBackgroundColour, SetBackgroundStyle, SetBestFittingSize, SetCaret, SetClientRect, SetClientSize, SetClientSizeWH, SetConstraints, SetContainingSizer, SetCursor, SetDimensions, SetDoubleBuffered, SetDropTarget, SetEventHandler, SetExtraStyle, SetFocus, SetFocusFromKbd, SetFont, SetForegroundColour, SetHelpText, SetHelpTextForId, SetId, SetInitialSize, SetLabel, SetLayoutDirection, SetMaxSize, SetMinSize, SetName, SetOwnBackgroundColour, SetOwnFont, SetOwnForegroundColour, SetPosition, SetRect, SetScrollPos, SetScrollbar, SetSize, SetSizeHints, SetSizeHintsSz, SetSizeWH, SetSizer, SetSizerAndFit, SetThemeEnabled, SetToolTip, SetToolTipString, SetTransparent, SetValidator, SetVirtualSize, SetVirtualSizeHints, SetVirtualSizeHintsSz, SetVirtualSizeWH, SetWindowStyle, SetWindowStyleFlag, SetWindowVariant, ShouldInheritColours, Show, Thaw, ToggleWindowStyle, TransferDataFromWindow, TransferDataToWindow, UnregisterHotKey, Update, UpdateWindowUI, UseBgCol, Validate, WarpPointer

Inherited from wx._core.EvtHandler: AddPendingEvent, Bind, Connect, Disconnect, GetEvtHandlerEnabled, GetNextHandler, GetPreviousHandler, ProcessEvent, ProcessPendingEvents, SetEvtHandlerEnabled, SetNextHandler, SetPreviousHandler, Unbind

Inherited from wx._core.EvtHandler (private): _setOORInfo

Inherited from wx._core.Object: GetClassName, IsSameAs

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__


Static Methods [hide private]

Inherited from wx._windows.Frame: GetClassDefaultAttributes

Inherited from wx._core.Window: FindFocus, GetCapture, NewControlId, NextControlId, PrevControlId


Properties [hide private]

Inherited from wx._windows.Frame: MenuBar, StatusBar, StatusBarPane, ToolBar, thisown

Inherited from wx._windows.TopLevelWindow: DefaultItem, Icon, Title, TmpDefaultItem

Inherited from wx._core.Window: AcceleratorTable, AutoLayout, BackgroundColour, BackgroundStyle, BestSize, BestVirtualSize, Border, Caret, CharHeight, CharWidth, Children, ClientAreaOrigin, ClientRect, ClientSize, Constraints, ContainingSizer, Cursor, DefaultAttributes, DropTarget, EffectiveMinSize, Enabled, EventHandler, ExtraStyle, Font, ForegroundColour, GrandParent, Handle, HelpText, Id, Label, LayoutDirection, MaxHeight, MaxSize, MaxWidth, MinHeight, MinSize, MinWidth, Name, Parent, Position, Rect, ScreenPosition, ScreenRect, Shown, Size, Sizer, ThemeEnabled, ToolTip, TopLevel, TopLevelParent, UpdateClientRect, UpdateRegion, Validator, VirtualSize, WindowStyle, WindowStyleFlag, WindowVariant

Inherited from wx._core.EvtHandler: EvtHandlerEnabled, NextHandler, PreviousHandler

Inherited from wx._core.Object: ClassName

Inherited from object: __class__


Method Details [hide private]

__init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE)
(Constructor)

source code 
Default wx.Frame class constructor.
Overrides: wx._windows.Frame.__init__

CreateBar(self)

source code 
Creates the GUI2Exe status bar.

MenuData(self)

source code 
Handles all the information used to build the menu bar.

CreateMenu(self, menuData)

source code 
Creates a menu based on input menu data.

CreateMenuBar(self)

source code 
Creates the main frame menu bar.

BuildNBImageList(self)

source code 
Builds a fake image list for wx.aui.AuiNotebook.

SetProperties(self)

source code 
Sets the main frame properties (title, icon...).

SetAllFlags(self)

source code 
Sets all the fancy flags for wxAUI and friends.

CheckForDatabase(self)

source code 
Checks if a database exists. If it doesn't, creates one anew.

BindEvents(self)

source code 
Binds all the events related to GUI2Exe.

ReadConfigurationFile(self)

source code 
Reads the default configuration file (default project initialization).

OnNewProject(self, event)

source code 
A new project is being created.

OnSwitchDB(self, event)

source code 
Switch to another project database.

OnSaveProject(self, event)

source code 
Saves the current project.

OnExportSetup(self, event)

source code 
Exports the Setup.py file.

OnClose(self, event)

source code 
Handles the wx.EVT_CLOSE event for the main frame.

OnPageClosing(self, event)

source code 
Handles the wx.aui.EVT_AUINOTEBOOK_PAGE_CLOSE event.

OnPageChanging(self, event)

source code 
Handles the wx.aui.EVT_AUINOTEBOOK_PAGE_CHANGING event.

OnAutoSave(self, event)

source code 
Enables/Disables the AutoSave feature.

OnDeleteBuild(self, event)

source code 
Enables/Disables the automatic removal of the "build" folder.

OnTestExecutable(self, event)

source code 
Test the compiled executable.

OnCustomCode(self, event)

source code 
Allows the user to add custom code to the Setup.py file.

OnViewSetup(self, event)

source code 
Allows the user to see the Setup.py file.

OnViewMissing(self, event)

source code 
Shows the missing modules and dlls.

OnCompilerSwitches(self, event)

source code 
Shows the different compiler switches/options.

OnTipsAndTricks(self, event)

source code 
Shows the compilation tips and tricks.

OnSaveConfig(self, event)

source code 
Saves the current GUI configuration, in terms of panes positions.

OnRestorePerspective(self, event)

source code 
Restore the selected GUI perspective.

OnHelp(self, event)

source code 
Shows the GUI2Exe help file.

OnAPI(self, event)

source code 
Shows the GUI2Exe API help file.

OnCheckUpgrade(self, event)

source code 
Checks for a possible upgrade of GUI2Exe.

OnAbout(self, event)

source code 
Shows the about dialog for GUI2Exe.

OnProcessTimer(self, event)

source code 
Handles the wx.EVT_TIMER event for the main frame.

OnProcessEnded(self, event)

source code 
Handles the wx.EVT_END_PROCESS for the main frame.

OnExeTimer(self, event)

source code 
Handles the wx.EVT_TIMER event for the main frame.

HandlePageClosing(self, selection, event)

source code 
None

SaveProject(self, project)

source code 
Saves the current project.

UpdatePageBitmap(self, pageName, pageIcon, selection=None)

source code 
Updates the wx.aui.AuiNotebook page image and text, to reflect the current project state (saved/unsaved).

RunError(self, kind, msg, sendMessage=False)

source code 
An utility method that shows a message dialog with different functionalities depending on the input.

AddNewProject(self, treeItem, projectName)

source code 
Adds a new project to the current center pane.

LoadProject(self, treeItem, projectName)

source code 
Loads a project in the center pane.

RenameProject(self, treeItem, oldName, newName)

source code 
The user has renamed the project in the project tree control.

Project(self, project, treeItem, isNew)

source code 
Auxiliary method used to actually add a page to the center pane.

WalkAUIPages(self, treeItem)

source code 
Walks over all the opened page in the center pane.

IsAlreadyOpened(self, treeItem)

source code 
Looks if a page is already opened.

CloseAssociatedPage(self, treeItem)

source code 
A method used to close a wx.aui.AuiNotebook page when an item in the project tree is deleted.

ReassignPageItem(self, oldItem, newItem)

source code 
Reassigns an item to an opened page after a drag and drop operation.

FillStatusBar(self)

source code 
Fills the statusbar fields with different information.

CreateBitmap(self, fileName)

source code 
Utility function to create bitmap passing a filename.

GetCurrentPage(self)

source code 
Returns the current LabelBook page.

GetCurrentBook(self)

source code 
Returns the current wx.aui.AuiNotebook page (a LabelBook).

GetCurrentProject(self)

source code 
Returns the current project associated to a LabelBook.

RunCompile(self, view, run)

source code 

Auxiliary method. Depending on the input, it does different things:
- view=True ==> Get the Setup.py script and displays it (run is discarded);
- run=False ==> Start a dry-run (a compilation that does nothing);
- run=True  ==> Start the real compilation process.

KillCompile(self)

source code 
Kills (or tries to) the compilation process.

SuccessfulCompilation(self, project, ask=True)

source code 
Assumes that the compilation process was successful and tries to test the new exe file.

ExamineLogFile(self, logFile)

source code 
Examine a log file, created by an executable that crashed fpr some reason.

SendMessage(self, kind, message)

source code 
Sends a message to the log window at the bottom.

GetVersion(self)

source code 
Return the current GUI2Exe version.