bugged stringlengths 4 228k | fixed stringlengths 0 96.3M | __index_level_0__ int64 0 481k |
|---|---|---|
def AppendToMenu(self,menu,window,data): subMenu = wx.Menu() menu.AppendMenu(-1,self.name,subMenu) #--Only enable the menu and append the subMenu's if all of the selected items are archives for item in window.GetSelected(): if not isinstance(window.data[item],bosh.InstallerArchive): id = menu.FindItem(self.name) menu.E... | def AppendToMenu(self,menu,window,data): subMenu = wx.Menu() menu.AppendMenu(-1,self.name,subMenu) #--Only enable the menu and append the subMenu's if all of the selected items are archives for item in window.GetSelected(): if not isinstance(window.data[item],bosh.InstallerArchive): id = menu.FindItem(self.name) menu.E... | 478,700 |
def remove(self,item): """Removes load list.""" settings.setChanged('bash.loadLists.data') del self.data[item] return True | def remove(self,item): """Removes load list.""" settings.setChanged('bash.loadLists.data') del self.data[item] return True | 478,701 |
def DoEdit(self,event): data = Mods_LoadListData(self.window) dialog = balt.ListEditor(self.window,-1,_('Load Lists'),data) dialog.ShowModal() dialog.Destroy() | def DoEdit(self,event): data = Mods_LoadListData(self.window) dialog = balt.ListEditor(self.window,-1,_('Load Lists'),data) dialog.ShowModal() dialog.Destroy() | 478,702 |
def Execute(self,event): self.window.esmsFirst = not self.window.esmsFirst self.window.PopulateItems() | def Execute(self,event): self.window.esmsFirst = not self.window.esmsFirst self.window.PopulateItems() | 478,703 |
def Execute(self,event): self.window.selectedFirst = not self.window.selectedFirst self.window.PopulateItems() | def Execute(self,event): self.window.selectedFirst = not self.window.selectedFirst self.window.PopulateItems() | 478,704 |
def Execute(self,event): settings['bash.mods.autoGhost'] ^= True bosh.modInfos.autoGhost(True) self.window.RefreshUI() | def Execute(self,event): settings['bash.mods.autoGhost'] ^= True bosh.modInfos.autoGhost(True) self.window.RefreshUI() | 478,705 |
def Execute(self,event): settings['bash.balo.autoGroup'] = not settings.get('bash.balo.autoGroup',True) bosh.modInfos.updateAutoGroups() | def Execute(self,event): settings['bash.balo.autoGroup'] = not settings.get('bash.balo.autoGroup',True) bosh.modInfos.updateAutoGroups() | 478,706 |
def Execute(self,event): deprint(_('Debug Printing: Off')) bolt.deprintOn = not bolt.deprintOn deprint(_('Debug Printing: On')) | def Execute(self,event): deprint(_('Debug Printing: Off')) bolt.deprintOn = not bolt.deprintOn deprint(_('Debug Printing: On')) | 478,707 |
def Execute(self,event): if not settings.get('bash.balo.full',False): message = _("Activate Full Balo?\n\nFull Balo segregates mods by groups, and then autosorts mods within those groups by alphabetical order. Full Balo is still in development and may have some rough edges.") if balt.askContinue(self.window,message,'ba... | def Execute(self,event): if not settings.get('bash.balo.full',False): message = _("Activate Full Balo?\n\nFull Balo segregates mods by groups, and then autosorts mods within those groups by alphabetical order. Full Balo is still in development and may have some rough edges.") if balt.askContinue(self.window,message,'ba... | 478,708 |
def Execute(self,event): message = _("Generate Bash program translator file?\n\nThis function is for translating Bash itself (NOT mods) into non-English languages. For more info, see Internationalization section of Bash readme.") if not balt.askContinue(self.window,message,'bash.dumpTranslator.continue',_('Dump Transla... | def Execute(self,event): message = _("Generate Bash program translator file?\n\nThis function is for translating Bash itself (NOT mods) into non-English languages. For more info, see Internationalization section of Bash readme.") if not balt.askContinue(self.window,message,'bash.dumpTranslator.continue',_('Dump Transla... | 478,709 |
def Execute(self,event): """Handle menu selection.""" window = getattr(self,'gTank',None) or self.window #--Continue Query message = _("Apply an ini tweak to Fallout3.ini?\n\nWARNING: Incorrect tweaks can result in CTDs and even damage to you computer!") if not balt.askContinue(window,message,'bash.iniTweaks.continue',... | def Execute(self,event): """Handle menu selection.""" window = getattr(self,'gTank',None) or self.window #--Continue Query message = _("Apply an ini tweak to Fallout3.ini?\n\nWARNING: Incorrect tweaks can result in CTDs and even damage to you computer!") if not balt.askContinue(window,message,'bash.iniTweaks.continue',... | 478,710 |
def Execute(self,event): #--Get masters list text = bosh.modInfos.getModList() if (wx.TheClipboard.Open()): wx.TheClipboard.SetData(wx.TextDataObject(text)) wx.TheClipboard.Close() balt.showLog(self.window,text,_("Active Mod Files"),asDialog=False,fixedFont=False,icons=bashBlue) | def Execute(self,event): #--Get masters list text = bosh.modInfos.getModList() if (wx.TheClipboard.Open()): wx.TheClipboard.SetData(wx.TextDataObject(text)) wx.TheClipboard.Close() balt.showLog(self.window,text,_("Active Mod Files"),asDialog=False,fixedFont=False,icons=bashBlue) | 478,711 |
def Execute(self,event): lockTimes = not bosh.modInfos.lockTimes if not lockTimes: bosh.modInfos.mtimes.clear() settings['bosh.modInfos.resetMTimes'] = bosh.modInfos.lockTimes = lockTimes bosh.modInfos.refresh(doInfos=False) modList.RefreshUI() | def Execute(self,event): lockTimes = not bosh.modInfos.lockTimes if not lockTimes: bosh.modInfos.mtimes.clear() settings['bosh.modInfos.resetMTimes'] = bosh.modInfos.lockTimes = lockTimes bosh.modInfos.refresh(doInfos=False) modList.RefreshUI() | 478,712 |
def Execute(self,event): """Handle selection.""" self.path.start() | def Execute(self,event): """Handle selection.""" self.path.start() | 478,713 |
def Execute(self,event): """Handle selection.""" self.path.start() | def Execute(self,event): """Handle selection.""" self.path.start() | 478,714 |
def Execute(self,event): """Handle selection.""" bosh.modInfos.setFallout3Version(self.key) bosh.modInfos.refresh() modList.RefreshUI() if self.setProfile: bosh.saveInfos.profiles.setItem(bosh.saveInfos.localSave,'vFallout3',self.key) bashFrame.SetTitle() | def Execute(self,event): """Handle selection.""" bosh.modInfos.setFallout3Version(self.key) bosh.modInfos.refresh() modList.RefreshUI() if self.setProfile: bosh.saveInfos.profiles.setItem(bosh.saveInfos.localSave,'vFallout3',self.key) bashFrame.SetTitle() | 478,715 |
def Execute(self,event): settings['fo3Edit.iKnowWhatImDoing'] ^= True | def Execute(self,event): settings['fo3Edit.iKnowWhatImDoing'] ^= True | 478,716 |
def Execute(self,event): message = (_("Update ArchiveInvalidation.txt? This updates the file that forces the game engine to recognize replaced textures. Note that this feature is experimental and most probably somewhat incomplete. You may prefer to use another program to do AI.txt file updating.")) if not balt.askConti... | def Execute(self,event): message = (_("Update ArchiveInvalidation.txt? This updates the file that forces the game engine to recognize replaced textures. Note that this feature is experimental and most probably somewhat incomplete. You may prefer to use another program to do AI.txt file updating.")) if not balt.askConti... | 478,717 |
def Execute(self,event): message = (_("This command will export the level info for NPCs whose level is offset with respect to the PC. The exported file can be edited with most spreadsheet programs and then reimported.\n\nSee the Bash help file for more info.")) if not balt.askContinue(self.window,message,'bash.actorLev... | def Execute(self,event): message = (_("This command will export the level info for NPCs whose level is offset with respect to the PC. The exported file can be edited with most spreadsheet programs and then reimported.\n\nSee the Bash help file for more info.")) if not balt.askContinue(self.window,message,'bash.actorLev... | 478,718 |
def Execute(self,event): message = (_("This command will import NPC level info from a previously exported file.\n\nSee the Bash help file for more info.")) if not balt.askContinue(self.window,message,'bash.actorLevels.import.continue',_('Import NPC Levels')): return fileName = GPath(self.data[0]) fileInfo = bosh.modInf... | def Execute(self,event): message = (_("This command will import NPC level info from a previously exported file.\n\nSee the Bash help file for more info.")) if not balt.askContinue(self.window,message,'bash.actorLevels.import.continue',_('Import NPC Levels')): return fileName = GPath(self.data[0]) fileInfo = bosh.modInf... | 478,719 |
def Execute(self,event): message = _("WARNING! For advanced modders only! Adds specified master to list of masters, thus ceding ownership of new content of this mod to the new master. Useful for splitting mods into esm/esp pairs.") if not balt.askContinue(self.window,message,'bash.addMaster.continue',_('Add Master')): ... | def Execute(self,event): message = _("WARNING! For advanced modders only! Adds specified master to list of masters, thus ceding ownership of new content of this mod to the new master. Useful for splitting mods into esm/esp pairs.") if not balt.askContinue(self.window,message,'bash.addMaster.continue',_('Add Master')): ... | 478,720 |
def DoCancel(self,event): """Handle save button.""" balt.sizes[self.__class__.__name__] = self.GetSizeTuple() self.EndModal(wx.ID_CANCEL) | def DoCancel(self,event): """Handle save button.""" balt.sizes[self.__class__.__name__] = self.GetSizeTuple() self.EndModal(wx.ID_CANCEL) | 478,721 |
def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_("Allow Ghosting")) menu.AppendItem(menuItem) | def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_("Allow Ghosting")) menu.AppendItem(menuItem) | 478,722 |
def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_("Disallow Ghosting")) menu.AppendItem(menuItem) | def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_("Disallow Ghosting")) menu.AppendItem(menuItem) | 478,723 |
def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_("Invert Ghosting")) menu.AppendItem(menuItem) | def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_("Invert Ghosting")) menu.AppendItem(menuItem) | 478,724 |
def Execute(self,event): for fileName in self.data: fileInfo = bosh.modInfos[fileName] allowGhosting = bosh.modInfos.table.getItem(fileName,'allowGhosting',True) ^ True bosh.modInfos.table.setItem(fileName,'allowGhosting',allowGhosting) toGhost = allowGhosting and fileName not in bosh.modInfos.ordered oldGhost = fileIn... | def Execute(self,event): for fileName in self.data: fileInfo = bosh.modInfos[fileName] allowGhosting = bosh.modInfos.table.getItem(fileName,'allowGhosting',True) ^ True bosh.modInfos.table.setItem(fileName,'allowGhosting',allowGhosting) toGhost = allowGhosting and fileName not in bosh.modInfos.ordered oldGhost = fileIn... | 478,725 |
def Execute(self,event): fileName = self.data[0] fileInfo = bosh.modInfos[fileName] allowGhosting = self.allowGhosting ^ True bosh.modInfos.table.setItem(fileName,'allowGhosting',allowGhosting) toGhost = allowGhosting and fileName not in bosh.modInfos.ordered oldGhost = fileInfo.isGhost if fileInfo.setGhost(toGhost) !=... | def Execute(self,event): fileName = self.data[0] fileInfo = bosh.modInfos[fileName] allowGhosting = self.allowGhosting ^ True bosh.modInfos.table.setItem(fileName,'allowGhosting',allowGhosting) toGhost = allowGhosting and fileName not in bosh.modInfos.ordered oldGhost = fileInfo.isGhost if fileInfo.setGhost(toGhost) !=... | 478,726 |
def Execute(self,event): message = _("Apply Nvidia fog fix. This modify fog values in interior cells to avoid the Nvidia black screen bug.") if not balt.askContinue(self.window,message,'bash.cleanMod.continue', _('Nvidia Fog Fix')): return progress = balt.Progress(_("Nvidia Fog Fix")) progress.setFull(len(self.data)) t... | def Execute(self,event): message = _("Apply Nvidia fog fix. This modify fog values in interior cells to avoid the Nvidia black screen bug.") if not balt.askContinue(self.window,message,'bash.cleanMod.continue', _('Nvidia Fog Fix')): return progress = balt.Progress(_("Nvidia Fog Fix")) progress.setFull(len(self.data)) t... | 478,727 |
def Execute(self,event): data = self.data fileName = GPath(data[0]) fileInfos = self.window.data fileInfo = fileInfos[fileName] count = 0 newName = GPath('New Mod.esp') while newName in fileInfos: count += 1 newName = GPath('New Mod %d.esp' % (count,)) newInfo = bosh.ModInfo(fileInfo.dir,newName) newInfo.mtime = fileIn... | def Execute(self,event): data = self.data fileName = GPath(data[0]) fileInfos = self.window.data fileInfo = fileInfos[fileName] count = 0 newName = GPath('New Mod.esp') while newName in fileInfos: count += 1 newName = GPath('New Mod %d.esp' % (count,)) newInfo = bosh.ModInfo(fileInfo.dir,newName) newInfo.mtime = fileIn... | 478,728 |
def Execute(self,event): fileName = GPath(self.data[0]) fileInfo = bosh.modInfos[fileName] textName = fileName.root+_('_Relations.csv') textDir = bosh.dirs['patches'] textDir.makedirs() #--File dialog textPath = balt.askSave(self.window,_('Export faction relations to:'),textDir,textName, '*Relations.csv') if not textPa... | def Execute(self,event): fileName = GPath(self.data[0]) fileInfo = bosh.modInfos[fileName] textName = fileName.root+_('_Relations.csv') textDir = bosh.dirs['patches'] textDir.makedirs() #--File dialog textPath = balt.askSave(self.window,_('Export faction relations to:'),textDir,textName, '*Relations.csv') if not textPa... | 478,729 |
def Execute(self,event): fileName = GPath(self.data[0]) fileInfo = bosh.modInfos[fileName] textName = fileName.root+_('_Factions.csv') textDir = bosh.dirs['patches'] textDir.makedirs() #--File dialog textPath = balt.askSave(self.window,_('Export factions to:'),textDir,textName, '*Factions.csv') if not textPath: return ... | def Execute(self,event): fileName = GPath(self.data[0]) fileInfo = bosh.modInfos[fileName] textName = fileName.root+_('_Factions.csv') textDir = bosh.dirs['patches'] textDir.makedirs() #--File dialog textPath = balt.askSave(self.window,_('Export factions to:'),textDir,textName, '*Factions.csv') if not textPath: return ... | 478,730 |
def Execute(self,event): message = _('Obsolete. Mods are now automatically tagged when possible.') balt.showInfo(self.window,message,_('Mark Levelers')) | def Execute(self,event): message = _('Obsolete. Mods are now automatically tagged when possible.') balt.showInfo(self.window,message,_('Mark Levelers')) | 478,731 |
def Execute(self,event): yes,no = [],[] mod_mergeInfo = bosh.modInfos.table.getColumn('mergeInfo') for fileName in map(GPath,self.data): if fileName == 'Fallout3.esm': continue fileInfo = bosh.modInfos[fileName] descTags = fileInfo.getBashTagsDesc() if descTags and 'Merge' in descTags: descTags.discard('Merge') fileInf... | def Execute(self,event): yes,no = [],[] mod_mergeInfo = bosh.modInfos.table.getColumn('mergeInfo') for fileName in map(GPath,self.data): if fileName == 'Fallout3.esm': continue fileInfo = bosh.modInfos[fileName] descTags = fileInfo.getBashTagsDesc() if descTags and 'Merge' in descTags: descTags.discard('Merge') fileInf... | 478,732 |
def Execute(self,event): for item in self.data: fileInfo = bosh.modInfos[item] newType = (fileInfo.isEsm() and 'esp') or 'esm' modsDir = fileInfo.dir curName = fileInfo.name newName = curName.root+'.'+newType #--Replace existing file? if modsDir.join(newName).exists(): if not balt.askYes(self.window,_('Replace existing... | def Execute(self,event): for item in self.data: fileInfo = bosh.modInfos[item] newType = (fileInfo.isEsm() and 'esp') or 'esm' modsDir = fileInfo.dir curName = fileInfo.name newName = curName.root+'.'+newType #--Replace existing file? if modsDir.join(newName).exists(): if not balt.askYes(self.window,_('Replace existing... | 478,733 |
def Execute(self,event): #--Select source face file srcDir = bosh.saveInfos.dir wildcard = _('Fallout3 Files')+' (*.fos;*.for)|*.fos;*.for' #--File dialog srcPath = balt.askOpen(self.window,'Face Source:',srcDir, '', wildcard) if not srcPath: return #--Get face srcDir,srcName = srcPath.headTail srcInfo = bosh.SaveInfo(... | def Execute(self,event): #--Select source face file srcDir = bosh.saveInfos.dir wildcard = _('Fallout3 Files')+' (*.fos;*.for)|*.fos;*.for' #--File dialog srcPath = balt.askOpen(self.window,'Face Source:',srcDir, '', wildcard) if not srcPath: return #--Get face srcDir,srcName = srcPath.headTail srcInfo = bosh.SaveInfo(... | 478,734 |
def Execute(self,event): message = _("WARNING! For advanced modders only! Flips esp/esm bit of esp masters to convert them to/from esm state. Useful for building/analyzing esp mastered mods.") if not balt.askContinue(self.window,message,'bash.flipMasters.continue'): return fileName = GPath(self.data[0]) fileInfo = bosh... | def Execute(self,event): message = _("WARNING! For advanced modders only! Flips esp/esm bit of esp masters to convert them to/from esm state. Useful for building/analyzing esp mastered mods.") if not balt.askContinue(self.window,message,'bash.flipMasters.continue'): return fileName = GPath(self.data[0]) fileInfo = bosh... | 478,735 |
def Execute(self,event): message = _('WARNING! For advanced modders only!\n\nThis command flips an internal bit in the mod, converting an esp to an esm and vice versa. Note that it is this bit and NOT the file extension that determines the esp/esm state of the mod.') if not balt.askContinue(self.window,message,'bash.fl... | def Execute(self,event): message = _('WARNING! For advanced modders only!\n\nThis command flips an internal bit in the mod, converting an esp to an esm and vice versa. Note that it is this bit and NOT the file extension that determines the esp/esm state of the mod.') if not balt.askContinue(self.window,message,'bash.fl... | 478,736 |
def remove(self,item): """Removes group.""" settings.setChanged(self.setKey) self.data.remove(item) #--Edit table entries. colGroup = bosh.modInfos.table.getColumn(self.column) for fileName in colGroup.keys(): if colGroup[fileName] == item: del colGroup[fileName] self.parent.PopulateItems() #--Done return True | def remove(self,item): """Removes group.""" settings.setChanged(self.setKey) self.data.remove(item) #--Edit table entries. colGroup = bosh.modInfos.table.getColumn(self.column) for fileName in colGroup.keys(): if colGroup[fileName] == item: del colGroup[fileName] self.parent.PopulateItems() #--Done return True | 478,737 |
def DoEdit(self,event): """Show label editing dialog.""" data = Mod_LabelsData(self.window,self) dialog = balt.ListEditor(self.window,-1,self.editWindow,data) dialog.ShowModal() dialog.Destroy() | def DoEdit(self,event): """Show label editing dialog.""" data = Mod_LabelsData(self.window,self) dialog = balt.ListEditor(self.window,-1,self.editWindow,data) dialog.ShowModal() dialog.Destroy() | 478,738 |
def AppendToMenu(self,menu,window,data): """Append label list to menu.""" #--For group labels if not settings.get('bash.balo.full'): Mod_Labels.AppendToMenu(self,menu,window,data) | def AppendToMenu(self,menu,window,data): """Append label list to menu.""" #--For group labels if not settings.get('bash.balo.full'): Mod_Labels.AppendToMenu(self,menu,window,data) | 478,739 |
def Execute(self,event): fileName = GPath(self.data[0]) fileInfo = bosh.modInfos[fileName] textName = 'My_Groups.csv' textDir = bosh.dirs['patches'] textDir.makedirs() #--File dialog textPath = balt.askSave(self.window,_('Export groups to:'),textDir,textName, '*Groups.csv') if not textPath: return (textDir,textName) = ... | def Execute(self,event): fileName = GPath(self.data[0]) fileInfo = bosh.modInfos[fileName] textName = 'My_Groups.csv' textDir = bosh.dirs['patches'] textDir.makedirs() #--File dialog textPath = balt.askSave(self.window,_('Export groups to:'),textDir,textName, '*Groups.csv') if not textPath: return (textDir,textName) = ... | 478,740 |
def Execute(self,event): message = _("Import groups from a text file. Any mods that are moved into new auto-sorted groups will be immediately reordered.") if not balt.askContinue(self.window,message,'bash.groups.import.continue', _('Import Groups')): return textDir = bosh.dirs['patches'] #--File dialog textPath = balt.... | def Execute(self,event): message = _("Import groups from a text file. Any mods that are moved into new auto-sorted groups will be immediately reordered.") if not balt.askContinue(self.window,message,'bash.groups.import.continue', _('Import Groups')): return textDir = bosh.dirs['patches'] #--File dialog textPath = balt.... | 478,741 |
def Execute(self,event): fileName = GPath(self.data[0]) fileInfo = bosh.modInfos[fileName] textName = fileName.root+_('_Eids.csv') textDir = bosh.dirs['patches'] textDir.makedirs() #--File dialog textPath = balt.askSave(self.window,_('Export eids to:'),textDir,textName, '*Eids.csv') if not textPath: return (textDir,tex... | def Execute(self,event): fileName = GPath(self.data[0]) fileInfo = bosh.modInfos[fileName] textName = fileName.root+_('_Eids.csv') textDir = bosh.dirs['patches'] textDir.makedirs() #--File dialog textPath = balt.askSave(self.window,_('Export eids to:'),textDir,textName, '*Eids.csv') if not textPath: return (textDir,tex... | 478,742 |
def Execute(self,event): message = (_("Import editor ids from a text file. This will replace existing ids and is not reversible!")) if not balt.askContinue(self.window,message,'bash.editorIds.import.continue', _('Import Editor Ids')): return fileName = GPath(self.data[0]) fileInfo = bosh.modInfos[fileName] textName = f... | def Execute(self,event): message = (_("Import editor ids from a text file. This will replace existing ids and is not reversible!")) if not balt.askContinue(self.window,message,'bash.editorIds.import.continue', _('Import Editor Ids')): return fileName = GPath(self.data[0]) fileInfo = bosh.modInfos[fileName] textName = f... | 478,743 |
def Execute(self,event): message = _("This command will remove the effects of a 'compile all' by removing all scripts whose texts appear to be identical to the version that they override.") if not balt.askContinue(self.window,message,'bash.decompileAll.continue',_('Decompile All')): return for item in self.data: fileNa... | def Execute(self,event): message = _("This command will remove the effects of a 'compile all' by removing all scripts whose texts appear to be identical to the version that they override.") if not balt.askContinue(self.window,message,'bash.decompileAll.continue',_('Decompile All')): return for item in self.data: fileNa... | 478,744 |
def Execute(self,event): message = _("For advanced modders only! Systematically replaces one set of Form Ids with another in npcs, creatures, containers and leveled lists according to a Replacers.csv file.") if not balt.askContinue(self.window,message,'bash.formIds.replace.continue', _('Import Form IDs')): return fileN... | def Execute(self,event): message = _("For advanced modders only! Systematically replaces one set of Form Ids with another in npcs, creatures, containers and leveled lists according to a Replacers.csv file.") if not balt.askContinue(self.window,message,'bash.formIds.replace.continue', _('Import Form IDs')): return fileN... | 478,745 |
def Execute(self,event): fileName = GPath(self.data[0]) fileInfo = bosh.modInfos[fileName] textName = fileName.root+_('_Names.csv') textDir = bosh.dirs['patches'] textDir.makedirs() #--File dialog textPath = balt.askSave(self.window,_('Export names to:'), textDir,textName, '*Names.csv') if not textPath: return (textDir... | def Execute(self,event): fileName = GPath(self.data[0]) fileInfo = bosh.modInfos[fileName] textName = fileName.root+_('_Names.csv') textDir = bosh.dirs['patches'] textDir.makedirs() #--File dialog textPath = balt.askSave(self.window,_('Export names to:'), textDir,textName, '*Names.csv') if not textPath: return (textDir... | 478,746 |
def Execute(self,event): message = (_("Import record names from a text file. This will replace existing names and is not reversible!")) if not balt.askContinue(self.window,message,'bash.fullNames.import.continue', _('Import Names')): return fileName = GPath(self.data[0]) fileInfo = bosh.modInfos[fileName] textName = fi... | def Execute(self,event): message = (_("Import record names from a text file. This will replace existing names and is not reversible!")) if not balt.askContinue(self.window,message,'bash.fullNames.import.continue', _('Import Names')): return fileName = GPath(self.data[0]) fileInfo = bosh.modInfos[fileName] textName = fi... | 478,747 |
def Execute(self,event): """Handle activation event.""" unfiltered = [x for x in bosh.modInfos.ordered if 'Filter' in bosh.modInfos[x].getBashTags()] message = balt.fill(_("The following mods are tagged 'Filter'. These should be deactivated before building the patch, and then merged into the patch during build.\n*%s\n\... | def Execute(self,event): """Handle activation event.""" unfiltered = [x for x in bosh.modInfos.ordered if 'Filter' in bosh.modInfos[x].getBashTags()] message = balt.fill(_("The following mods are tagged 'Filter'. These should be deactivated before building the patch, and then merged into the patch during build.\n*%s\n\... | 478,748 |
def __init__(self): """Initialize.""" self.column = 'rating' self.setKey = 'bash.mods.ratings' self.editMenu = _('Edit Ratings...') self.editWindow = _('Ratings') self.addPrompt = _('Add rating:') self.idList = ID_RATINGS Mod_Labels.__init__(self) | def __init__(self): """Initialize.""" self.column = 'rating' self.setKey = 'bash.mods.ratings' self.editMenu = _('Edit Ratings...') self.editWindow = _('Ratings') self.addPrompt = _('Add rating:') self.idList = ID_RATINGS Mod_Labels.__init__(self) | 478,749 |
def Execute(self,event): message = _("WARNING! For advanced modders only! This feature allows you to edit newer official mods in the TES Construction Set by resetting the internal file version number back to 0.8. While this will make the mod editable, it may also break the mod in some way.") if not balt.askContinue(sel... | def Execute(self,event): message = _("WARNING! For advanced modders only! This feature allows you to edit newer official mods in the TES Construction Set by resetting the internal file version number back to 0.8. While this will make the mod editable, it may also break the mod in some way.") if not balt.askContinue(sel... | 478,750 |
def Execute(self,event): modName = GPath(self.data[0]) modInfo = bosh.modInfos[modName] progress = balt.Progress(_(modName.s)) try: modDetails = bosh.ModDetails() modDetails.readFromMod(modInfo,SubProgress(progress,0.1,0.7)) buff = cStringIO.StringIO() progress(0.7,_("Sorting records.")) for group in sorted(modDetails.... | def Execute(self,event): modName = GPath(self.data[0]) modInfo = bosh.modInfos[modName] progress = balt.Progress(_(modName.s)) try: modDetails = bosh.ModDetails() modDetails.readFromMod(modInfo,SubProgress(progress,0.1,0.7)) buff = cStringIO.StringIO() progress(0.7,_("Sorting records.")) for group in sorted(modDetails.... | 478,751 |
def Execute(self,event): message = _("In some circumstances, editing a mod will leave orphaned cell records in the world group. This command will remove such orphans.") if not balt.askContinue(self.window,message,'bash.removeWorldOrphans.continue',_('Remove World Orphans')): return for item in self.data: fileName = GPa... | def Execute(self,event): message = _("In some circumstances, editing a mod will leave orphaned cell records in the world group. This command will remove such orphans.") if not balt.askContinue(self.window,message,'bash.removeWorldOrphans.continue',_('Remove World Orphans')): return for item in self.data: fileName = GPa... | 478,752 |
def Execute(self,event): fileName = GPath(self.data[0]) fileInfo = self.window.data[fileName] if not docBrowser: DocBrowser().Show() settings['bash.modDocs.show'] = True #balt.ensureDisplayed(docBrowser) docBrowser.SetMod(fileInfo.name) docBrowser.Raise() | def Execute(self,event): fileName = GPath(self.data[0]) fileInfo = self.window.data[fileName] if not docBrowser: DocBrowser().Show() settings['bash.modDocs.show'] = True #balt.ensureDisplayed(docBrowser) docBrowser.SetMod(fileInfo.name) docBrowser.Raise() | 478,753 |
def Execute(self,event): fileName = GPath(self.data[0]) fileInfo = bosh.modInfos[fileName] textName = fileName.root+_('_Stats.csv') textDir = bosh.dirs['patches'] textDir.makedirs() #--File dialog textPath = balt.askSave(self.window,_('Export stats to:'), textDir, textName, '*Stats.csv') if not textPath: return (textDi... | def Execute(self,event): fileName = GPath(self.data[0]) fileInfo = bosh.modInfos[fileName] textName = fileName.root+_('_Stats.csv') textDir = bosh.dirs['patches'] textDir.makedirs() #--File dialog textPath = balt.askSave(self.window,_('Export stats to:'), textDir, textName, '*Stats.csv') if not textPath: return (textDi... | 478,754 |
def Execute(self,event): message = (_("Import item stats from a text file. This will replace existing stats and is not reversible!")) if not balt.askContinue(self.window,message,'bash.stats.import.continue', _('Import Stats')): return fileName = GPath(self.data[0]) fileInfo = bosh.modInfos[fileName] textName = fileName... | def Execute(self,event): message = (_("Import item stats from a text file. This will replace existing stats and is not reversible!")) if not balt.askContinue(self.window,message,'bash.stats.import.continue', _('Import Stats')): return fileName = GPath(self.data[0]) fileInfo = bosh.modInfos[fileName] textName = fileName... | 478,755 |
def Execute(self,event): message = _("Changes deleted refs to ignored. This is a very advanced feature and should only be used by modders who know exactly what they're doing.") if not balt.askContinue(self.window,message,'bash.undeleteRefs.continue', _('Undelete Refs')): return progress = balt.Progress(_("Undelete Refs... | def Execute(self,event): message = _("Changes deleted refs to ignored. This is a very advanced feature and should only be used by modders who know exactly what they're doing.") if not balt.askContinue(self.window,message,'bash.undeleteRefs.continue', _('Undelete Refs')): return progress = balt.Progress(_("Undelete Refs... | 478,756 |
def remove(self,profile): """Removes load list.""" profileSaves = 'Saves\\'+profile+'\\' #--Can't remove active or Default directory. if bosh.saveInfos.localSave == profileSaves: balt.showError(self.parent,_('Active profile cannot be removed.')) return False #--Get file count. If > zero, verify with user. profileDir = ... | def remove(self,profile): """Removes load list.""" profileSaves = 'Saves\\'+profile+'\\' #--Can't remove active or Default directory. if bosh.saveInfos.localSave == profileSaves: balt.showError(self.parent,_('Active profile cannot be removed.')) return False #--Get file count. If > zero, verify with user. profileDir = ... | 478,757 |
def swapFallout3Version(self,newSaves): """Swaps Fallout3 version to memorized version.""" voNew = bosh.saveInfos.profiles.setItemDefault(newSaves,'vFallout3',bosh.modInfos.voCurrent) if voNew in bosh.modInfos.voAvailable: bosh.modInfos.setFallout3Version(voNew) | def swapFallout3Version(self,newSaves): """Swaps Fallout3 version to memorized version.""" voNew = bosh.saveInfos.profiles.setItemDefault(newSaves,'vFallout3',bosh.modInfos.voCurrent) if voNew in bosh.modInfos.voAvailable: bosh.modInfos.setFallout3Version(voNew) | 478,758 |
def Execute(self,event): fileName = GPath(self.data[0]) fileInfo = self.window.data[fileName] errorMessage = bosh.modInfos.selectExact(fileInfo.masterNames) modList.PopulateItems() saveList.PopulateItems() self.window.details.SetFile(fileName) if errorMessage: balt.showError(self.window,errorMessage,fileName.s) | def Execute(self,event): fileName = GPath(self.data[0]) fileInfo = self.window.data[fileName] errorMessage = bosh.modInfos.selectExact(fileInfo.masterNames) modList.PopulateItems() saveList.PopulateItems() self.window.details.SetFile(fileName) if errorMessage: balt.showError(self.window,errorMessage,fileName.s) | 478,759 |
def FromMod(self,fileInfo,srcPath): """Import from a mod.""" #--Get faces srcDir,srcName = GPath(srcPath).headTail srcInfo = bosh.ModInfo(srcDir,srcName) srcFaces = bosh.PCFaces.mod_getFaces(srcInfo) #--No faces to import? if not srcFaces: balt.showOk(self.window,_('No player (PC) faces found in %s.') % (srcName.s,),sr... | def FromMod(self,fileInfo,srcPath): """Import from a mod.""" #--Get faces srcDir,srcName = GPath(srcPath).headTail srcInfo = bosh.ModInfo(srcDir,srcName) srcFaces = bosh.PCFaces.mod_getFaces(srcInfo) #--No faces to import? if not srcFaces: balt.showOk(self.window,_('No player (PC) faces found in %s.') % (srcName.s,),sr... | 478,760 |
def Execute(self,event): oldNew = map(GPath,self.data) oldNew.sort(key = lambda x: bosh.saveInfos.dir.join(x).mtime) oldName = oldNew[0] oldInfo = self.window.data[GPath(oldName)] oldMasters = set(oldInfo.masterNames) if len(self.data) == 1: newName = GPath(_("Active Masters")) newMasters = set(bosh.modInfos.ordered) e... | def Execute(self,event): oldNew = map(GPath,self.data) oldNew.sort(key = lambda x: bosh.saveInfos.dir.join(x).mtime) oldName = oldNew[0] oldInfo = self.window.data[GPath(oldName)] oldMasters = set(oldInfo.masterNames) if len(self.data) == 1: newName = GPath(_("Active Masters")) newMasters = set(bosh.modInfos.ordered) e... | 478,761 |
def save(self): """Handles save button.""" if not self.changed: balt.showOk(self.parent,_("No changes made.")) else: self.changed = False #--Allows graceful effort if close fails. count = 0 for newName,(oldName,records) in self.data.items(): if newName == oldName: continue for record in records: record.full = newName r... | def save(self): """Handles save button.""" if not self.changed: balt.showOk(self.parent,_("No changes made.")) else: self.changed = False #--Allows graceful effort if close fails. count = 0 for newName,(oldName,records) in self.data.items(): if newName == oldName: continue for record in records: record.full = newName r... | 478,762 |
def Execute(self,event): """Handle menu selection.""" #--Get save info for file fileName = GPath(self.data[0]) fileInfo = self.window.data[fileName] #--Get SaveFile progress = balt.Progress(_("Loading...")) try: saveFile = bosh.SaveFile(fileInfo) saveFile.load(progress) finally: if progress: progress.Destroy() #--No cu... | def Execute(self,event): """Handle menu selection.""" #--Get save info for file fileName = GPath(self.data[0]) fileInfo = self.window.data[fileName] #--Get SaveFile progress = balt.Progress(_("Loading...")) try: saveFile = bosh.SaveFile(fileInfo) saveFile.load(progress) finally: if progress: progress.Destroy() #--No cu... | 478,763 |
def save(self): """Handles save button click.""" self.saveSpells.removePlayerSpells(self.removed) | def save(self): """Handles save button click.""" self.saveSpells.removePlayerSpells(self.removed) | 478,764 |
def Execute(self,event): fileName = GPath(self.data[0]) fileInfo = self.window.data[fileName] data = Save_EditPCSpellsData(self.window,fileInfo) dialog = balt.ListEditor(self.window,-1,_('Player Spells'),data) dialog.ShowModal() dialog.Destroy() | def Execute(self,event): fileName = GPath(self.data[0]) fileInfo = self.window.data[fileName] data = Save_EditPCSpellsData(self.window,fileInfo) dialog = balt.ListEditor(self.window,-1,_('Player Spells'),data) dialog.ShowModal() dialog.Destroy() | 478,765 |
def MoveFiles(self,profile): fileInfos = self.window.data destDir = bosh.dirs['saveBase'].join('Saves') if profile != _('Default'): destDir = destDir.join(profile) if destDir == fileInfos.dir: balt.showError(self.window,_("You can't move saves to the current profile!")) return savesTable = bosh.saveInfos.table #--bashD... | def MoveFiles(self,profile): fileInfos = self.window.data destDir = bosh.dirs['saveBase'].join('Saves') if profile != _('Default'): destDir = destDir.join(profile) if destDir == fileInfos.dir: balt.showError(self.window,_("You can't move saves to the current profile!")) return savesTable = bosh.saveInfos.table #--bashD... | 478,766 |
def Execute(self,event): #--File Info fileName = GPath(self.data[0]) fileInfo = self.window.data[fileName] #--Check current value saveFile = bosh.SaveFile(fileInfo) saveFile.load() (tcSize,abombCounter,abombFloat) = saveFile.getAbomb() #--Continue? progress = 100*abombFloat/struct.unpack('f',struct.pack('I',0x49000000)... | def Execute(self,event): #--File Info fileName = GPath(self.data[0]) fileInfo = self.window.data[fileName] #--Check current value saveFile = bosh.SaveFile(fileInfo) saveFile.load() (tcSize,abombCounter,abombFloat) = saveFile.getAbomb() #--Continue? progress = 100*abombFloat/struct.unpack('f',struct.pack('I',0x49000000)... | 478,767 |
def Execute(self,event): debug = False message = _('This will (mostly) repair faction membership errors due to Wrye Bash v 105 bug and/or faction changes in underlying mods.\n\nWARNING! This repair is NOT perfect! Do not use it unless you have to!') if not balt.askContinue(self.window,message,'bash.repairFactions.conti... | def Execute(self,event): debug = False message = _('This will (mostly) repair faction membership errors due to Wrye Bash v 105 bug and/or faction changes in underlying mods.\n\nWARNING! This repair is NOT perfect! Do not use it unless you have to!') if not balt.askContinue(self.window,message,'bash.repairFactions.conti... | 478,768 |
def Execute(self,event): #--File Info fileName = GPath(self.data[0]) fileInfo = self.window.data[fileName] if bosh.PCFaces.save_repairHair(fileInfo): balt.showOk(self.window,_('Hair repaired.')) else: balt.showOk(self.window,_('No repair necessary.'),fileName.s) | def Execute(self,event): #--File Info fileName = GPath(self.data[0]) fileInfo = self.window.data[fileName] if bosh.PCFaces.save_repairHair(fileInfo): balt.showOk(self.window,_('Hair repaired.')) else: balt.showOk(self.window,_('No repair necessary.'),fileName.s) | 478,769 |
def Execute(self,event): #--Query value result = balt.askText(self.window, _("Set weight of all player potions to..."), _("Reweigh Potions"), '%0.2f' % (settings.get('bash.reweighPotions.newWeight',0.2),)) if not result: return newWeight = float(result.strip()) if newWeight < 0 or newWeight > 100: balt.showOk(self.wind... | def Execute(self,event): #--Query value result = balt.askText(self.window, _("Set weight of all player potions to..."), _("Reweigh Potions"), '%0.2f' % (settings.get('bash.reweighPotions.newWeight',0.2),)) if not result: return newWeight = float(result.strip()) if newWeight < 0 or newWeight > 100: balt.showOk(self.wind... | 478,770 |
def Execute(self,event): fileName = GPath(self.data[0]) fileInfo = self.window.data[fileName] saveFile = bosh.SaveFile(fileInfo) progress = balt.Progress(_("Statistics")) try: saveFile.load(SubProgress(progress,0,0.9)) log = bolt.LogFile(cStringIO.StringIO()) progress(0.9,_("Calculating statistics.")) saveFile.logStats... | def Execute(self,event): fileName = GPath(self.data[0]) fileInfo = self.window.data[fileName] saveFile = bosh.SaveFile(fileInfo) progress = balt.Progress(_("Statistics")) try: saveFile.load(SubProgress(progress,0,0.9)) log = bolt.LogFile(cStringIO.StringIO()) progress(0.9,_("Calculating statistics.")) saveFile.logStats... | 478,771 |
def Execute(self,event): #--File Info saveName = GPath(self.data[0]) saveInfo = self.window.data[saveName] progress = balt.Progress(_("Scanning for Bloat")) delObjRefs = 0 try: #--Scan and report saveFile = bosh.SaveFile(saveInfo) saveFile.load(SubProgress(progress,0,0.8)) createdCounts,nullRefCount = saveFile.findBloa... | def Execute(self,event): #--File Info saveName = GPath(self.data[0]) saveInfo = self.window.data[saveName] progress = balt.Progress(_("Scanning for Bloat")) delObjRefs = 0 try: #--Scan and report saveFile = bosh.SaveFile(saveInfo) saveFile.load(SubProgress(progress,0,0.8)) createdCounts,nullRefCount = saveFile.findBloa... | 478,772 |
def Execute(self,event): debug = True message = _('This will relevel the NPCs in the selected save game(s) according to the npc levels in the currently active mods. This supercedes the older "Import NPC Levels" command.') if not balt.askContinue(self.window,message,'bash.updateNpcLevels.continue',_('Update NPC Levels')... | def Execute(self,event): debug = True message = _('This will relevel the NPCs in the selected save game(s) according to the npc levels in the currently active mods. This supercedes the older "Import NPC Levels" command.') if not balt.askContinue(self.window,message,'bash.updateNpcLevels.continue',_('Update NPC Levels')... | 478,773 |
def Execute(self,event): fallout3Ini = bosh.fallout3Ini base = fallout3Ini.getSetting('Display','sScreenShotBaseName','ScreenShot') next = fallout3Ini.getSetting('Display','iScreenShotIndex','0') rePattern = re.compile(r'^(.+?)(\d*)$',re.I) pattern = balt.askText(self.window,_("Screenshot base name, optionally with nex... | def Execute(self,event): fallout3Ini = bosh.fallout3Ini base = fallout3Ini.getSetting('Display','sScreenShotBaseName','ScreenShot') next = fallout3Ini.getSetting('Display','iScreenShotIndex','0') rePattern = re.compile(r'^(.+?)(\d*)$',re.I) pattern = balt.askText(self.window,_("Screenshot base name, optionally with nex... | 478,774 |
def Execute(self,event): #--File Info srcDir = self.window.data.dir progress = balt.Progress(_("Converting to Jpg")) try: progress.setFull(len(self.data)) srcDir = bosh.screensData.dir for index,fileName in enumerate(self.data): progress(index,fileName.s) srcPath = srcDir.join(fileName) destPath = srcPath.root+'.jpg' i... | def Execute(self,event): #--File Info srcDir = self.window.data.dir progress = balt.Progress(_("Converting to Jpg")) try: progress.setFull(len(self.data)) srcDir = bosh.screensData.dir for index,fileName in enumerate(self.data): progress(index,fileName.s) srcPath = srcDir.join(fileName) destPath = srcPath.root+'.jpg' i... | 478,775 |
def Execute(self,event): #--File Info rePattern = re.compile(r'^([^\\/]+?)(\d*)(\.(jpg|bmp))$',re.I) fileName0 = self.data[0] pattern = balt.askText(self.window,_("Enter new name. E.g. Screenshot 123.bmp"), _("Rename Files"),fileName0.s) if not pattern: return maPattern = rePattern.match(pattern) if not maPattern: balt... | def Execute(self,event): #--File Info rePattern = re.compile(r'^([^\\/]+?)(\d*)(\.(jpg|bmp))$',re.I) fileName0 = self.data[0] pattern = balt.askText(self.window,_("Enter new name. E.g. Screenshot 123.bmp"), _("Rename Files"),fileName0.s) if not pattern: return maPattern = rePattern.match(pattern) if not maPattern: balt... | 478,776 |
def Execute(self,event): textDir = settings.get('bash.workDir',bosh.dirs['app']) #--File dialog paths = balt.askOpenMulti(self.window,_('Import message archive(s):'),textDir, '', '*.html') if not paths: return settings['bash.workDir'] = paths[0].head for path in paths: bosh.messages.importArchive(path) self.window.Refr... | def Execute(self,event): textDir = settings.get('bash.workDir',bosh.dirs['app']) #--File dialog paths = balt.askOpenMulti(self.window,_('Import message archive(s):'),textDir, '', '*.html') if not paths: return settings['bash.workDir'] = paths[0].head for path in paths: bosh.messages.importArchive(path) self.window.Refr... | 478,777 |
def Execute(self,event): message = _(r'Delete these %d message(s)? This operation cannot be undone.') % (len(self.data),) if not balt.askYes(self.window,message,_('Delete Messages')): return #--Do it for message in self.data: self.window.data.delete(message) #--Refresh stuff self.window.RefreshUI() | def Execute(self,event): message = _(r'Delete these %d message(s)? This operation cannot be undone.') % (len(self.data),) if not balt.askYes(self.window,message,_('Delete Messages')): return #--Do it for message in self.data: self.window.data.delete(message) #--Refresh stuff self.window.RefreshUI() | 478,778 |
def Execute(self,event): name = balt.askText(self.gTank,_("Add new person:"),self.title) if not name: return if name in self.data: return balt.showInfo(self.gTank,name+_(" already exists."),self.title) self.data[name] = (time.time(),0,'') self.gTank.RefreshUI(details=name) self.gTank.gList.EnsureVisible(self.gTank.GetI... | def Execute(self,event): name = balt.askText(self.gTank,_("Add new person:"),self.title) if not name: return if name in self.data: return balt.showInfo(self.gTank,name+_(" already exists."),self.title) self.data[name] = (time.time(),0,'') self.gTank.RefreshUI(details=name) self.gTank.gList.EnsureVisible(self.gTank.GetI... | 478,779 |
def Execute(self,event): textDir = settings.get('bash.workDir',bosh.dirs['app']) #--File dialog path = balt.askSave(self.gTank,_('Export people to text file:'),textDir, 'People.txt', '*.txt') if not path: return settings['bash.workDir'] = path.head self.data.dumpText(path,self.selected) balt.showInfo(self.gTank,_('Reco... | def Execute(self,event): textDir = settings.get('bash.workDir',bosh.dirs['app']) #--File dialog path = balt.askSave(self.gTank,_('Export people to text file:'),textDir, 'People.txt', '*.txt') if not path: return settings['bash.workDir'] = path.head self.data.dumpText(path,self.selected) balt.showInfo(self.gTank,_('Reco... | 478,780 |
def Execute(self,event): textDir = settings.get('bash.workDir',bosh.dirs['app']) #--File dialog path = balt.askOpen(self.gTank,_('Import people from text file:'),textDir, '', '*.txt') if not path: return settings['bash.workDir'] = path.head newNames = self.data.loadText(path) balt.showInfo(self.gTank,_("People imported... | def Execute(self,event): textDir = settings.get('bash.workDir',bosh.dirs['app']) #--File dialog path = balt.askOpen(self.gTank,_('Import people from text file:'),textDir, '', '*.txt') if not path: return settings['bash.workDir'] = path.head newNames = self.data.loadText(path) balt.showInfo(self.gTank,_("People imported... | 478,781 |
def DoList(self,event): """Handle selection of label.""" idList = ID_GROUPS karma = range(5,-6,-1)[event.GetId()-idList.BASE] for item in self.selected: text = self.data[item][2] self.data[item] = (time.time(),karma,text) self.gTank.RefreshUI() self.data.setChanged() | def DoList(self,event): """Handle selection of label.""" idList = ID_GROUPS karma = range(5,-6,-1)[event.GetId()-idList.BASE] for item in self.selected: text = self.data[item][2] self.data[item] = (time.time(),karma,text) self.gTank.RefreshUI() self.data.setChanged() | 478,782 |
def Execute(self,event): itemId = self.data[0] masterInfo = self.window.data[itemId] masterName = masterInfo.name #--File Dialog wildcard = _('Fallout3 Mod Files')+' (*.esp;*.esm)|*.esp;*.esm' newPath = balt.askOpen(self.window,_('Change master name to:'), bosh.modInfos.dir, masterName, wildcard) if not newPath: return... | def Execute(self,event): itemId = self.data[0] masterInfo = self.window.data[itemId] masterName = masterInfo.name #--File Dialog wildcard = _('Fallout3 Mod Files')+' (*.esp;*.esm)|*.esp;*.esm' newPath = balt.askOpen(self.window,_('Change master name to:'), bosh.modInfos.dir, masterName, wildcard) if not newPath: return... | 478,783 |
def Execute(self,event): itemId = self.data[0] masterInfo = self.window.data[itemId] masterName = masterInfo.name newName = GPath(re.sub('[mM]$','p','XX'+masterName.s)) #--Save Name masterInfo.setName(newName) self.window.ReList() self.window.PopulateItems() | def Execute(self,event): itemId = self.data[0] masterInfo = self.window.data[itemId] masterName = masterInfo.name newName = GPath(re.sub('[mM]$','p','XX'+masterName.s)) #--Save Name masterInfo.setName(newName) self.window.ReList() self.window.PopulateItems() | 478,784 |
def Execute(self,event,extraArgs=None): exeFose = bosh.dirs['app'].join('fose_loader.exe') exeArgs = self.exeArgs if self.foseArg != None and settings.get('bash.fose.on',False) and exeFose.exists(): exePath = exeFose if self.foseArg != '': exeArgs += (self.foseArg,) else: exePath = self.exePath exeArgs = (exePath.stail... | def Execute(self,event,extraArgs=None): exeFose = bosh.dirs['app'].join('fose_loader.exe') exeArgs = self.exeArgs if self.foseArg != None and settings.get('bash.fose.on',False) and exeFose.exists(): exePath = exeFose if self.foseArg != '': exeArgs += (self.foseArg,) else: exePath = self.exePath exeArgs = (exePath.stail... | 478,785 |
def Execute(self,event): """Handle menu selection.""" cwd = bolt.Path.getcwd() self.jar.head.setcwd() os.spawnv(os.P_NOWAIT,self.java.s,(self.java.stail,self.javaArg,'-jar',self.jar.stail)) cwd.setcwd() | def Execute(self,event): """Handle menu selection.""" cwd = bolt.Path.getcwd() self.jar.head.setcwd() os.spawnv(os.P_NOWAIT,self.java.s,(self.java.stail,self.javaArg,'-jar',self.jar.stail)) cwd.setcwd() | 478,786 |
def Execute(self,event): extraArgs = [] if wx.GetKeyState(wx.WXK_CONTROL): extraArgs.append('-FixupPGRD') if settings['fo3Edit.iKnowWhatImDoing']: extraArgs.append('-IKnowWhatImDoing') App_Button.Execute(self,event,tuple(extraArgs)) | def Execute(self,event): extraArgs = [] if wx.GetKeyState(wx.WXK_CONTROL): extraArgs.append('-FixupPGRD') if settings['fo3Edit.iKnowWhatImDoing']: extraArgs.append('-IKnowWhatImDoing') App_Button.Execute(self,event,tuple(extraArgs)) | 478,787 |
def Execute(self,event): App_Button.Execute(self,event) | def Execute(self,event): App_Button.Execute(self,event) | 478,788 |
def Execute(self,event): App_Button.Execute(self,event) if settings.get('bash.autoQuit.on',False): bashFrame.Close() | def Execute(self,event): App_Button.Execute(self,event) if settings.get('bash.autoQuit.on',False): bashFrame.Close() | 478,789 |
def Execute(self,event): """Invert state.""" self.SetState(-1) | def Execute(self,event): """Invert state.""" self.SetState(-1) | 478,790 |
def Execute(self,event): """Invert state.""" self.SetState(-1) | def Execute(self,event): """Invert state.""" self.SetState(-1) | 478,791 |
def Execute(self,event): """Handle menu selection.""" bolt.Path.getcwd().join('Wrye Bash.html').start() | def Execute(self,event): """Handle menu selection.""" bolt.Path.getcwd().join('Wrye Bash.html').start() | 478,792 |
def Execute(self,event): """Handle menu selection.""" if not docBrowser: DocBrowser().Show() settings['bash.modDocs.show'] = True #balt.ensureDisplayed(docBrowser) docBrowser.Raise() | def Execute(self,event): """Handle menu selection.""" if not docBrowser: DocBrowser().Show() settings['bash.modDocs.show'] = True #balt.ensureDisplayed(docBrowser) docBrowser.Raise() | 478,793 |
def Execute(self,event): """Handle menu selection.""" if not modChecker: ModChecker().Show() #balt.ensureDisplayed(docBrowser) modChecker.Raise() | def Execute(self,event): """Handle menu selection.""" if not modChecker: ModChecker().Show() #balt.ensureDisplayed(docBrowser) modChecker.Raise() | 478,794 |
def InitSettings(): """Initializes settings dictionary for bosh and basher.""" bosh.initSettings() global settings balt._settings = bosh.settings balt.sizes = bosh.settings.getChanged('bash.window.sizes',{}) settings = bosh.settings settings.loadDefaults(settingDefaults) #--Wrye Balt settings['balt.WryeLog.temp'] = bos... | def InitSettings(): """Initializes settings dictionary for bosh and basher.""" bosh.initSettings() global settings balt._settings = bosh.settings balt.sizes = bosh.settings.getChanged('bash.window.sizes',{}) settings = bosh.settings settings.loadDefaults(settingDefaults) #--Wrye Balt settings['balt.WryeLog.temp'] = bos... | 478,795 |
def InitImages(): """Initialize color and image collections.""" #--Colors colors['bash.esm'] = (220,220,255) colors['bash.doubleTime.not'] = 'WHITE' colors['bash.doubleTime.exists'] = (255,220,220) colors['bash.doubleTime.load'] = (255,100,100) colors['bash.exOverLoaded'] = (0xFF,0x99,0) colors['bash.masters.remapped']... | def InitImages(): """Initialize color and image collections.""" #--Colors colors['bash.esm'] = (220,220,255) colors['bash.doubleTime.not'] = 'WHITE' colors['bash.doubleTime.exists'] = (255,220,220) colors['bash.doubleTime.load'] = (255,100,100) colors['bash.exOverLoaded'] = (0xFF,0x99,0) colors['bash.masters.remapped']... | 478,796 |
def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fa... | def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fa... | 478,797 |
def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fa... | def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fa... | 478,798 |
def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fa... | def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fa... | 478,799 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.