(parent, charID)
| 274 | |
| 275 | @staticmethod |
| 276 | def SaveCharacterAs(parent, charID): |
| 277 | sChar = Character.getInstance() |
| 278 | name = sChar.getCharName(charID) |
| 279 | |
| 280 | with TextEntryValidatedDialog( |
| 281 | parent, CharacterTextValidor, |
| 282 | _t("Enter a name for your new Character:"), |
| 283 | _t("Save Character As...") |
| 284 | ) as dlg: |
| 285 | dlg.SetValue(_t("{} Copy").format(name)) |
| 286 | dlg.txtctrl.SetInsertionPointEnd() |
| 287 | dlg.CenterOnParent() |
| 288 | |
| 289 | if dlg.ShowModal() == wx.ID_OK: |
| 290 | sChar = Character.getInstance() |
| 291 | return sChar.saveCharacterAs(charID, dlg.txtctrl.GetValue().strip()) |
| 292 | |
| 293 | |
| 294 | class SkillTreeView(wx.Panel): |
no test coverage detected