Skip to content

Commit

Permalink
minor code cleanup and small bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
UncertainProd committed May 30, 2022
1 parent fdd9366 commit 8f485ee
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
2 changes: 0 additions & 2 deletions src/engine/icongridutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@ def appendIconToGrid(icongrid_path, iconpaths, iconsize=150):
icongrid = _icongrid_add_row(icongrid)

icongrid.paste(icon_img, (new_col_idx*iconsize, new_row_idx*iconsize))
# icon_img.close()
icongrid.save(icongrid_path)
# icongrid.close()
except Exception as e:
return_status = -1
exception_msg = f"{e.__class__.__name__} : {str(e)}"
Expand Down
8 changes: 0 additions & 8 deletions src/spriteframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,6 @@ def get_tooltip_string(self, parent):

return ttstring

def change_img_to(self, newimg):
print("NOO!")
return
self.img_data.modify_image_to(newimg)
# make changes in xml data too
self.img_xml_data.w = newimg.width
self.img_xml_data.h = newimg.height

def flip_img(self, dxn):
# flip the PIL img of self
if dxn == 'X':
Expand Down
1 change: 1 addition & 0 deletions src/xmlpngUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ def show_settings(self):
def handle_tab_change(self, newtabind):
self.ui.actionClear_Spritesheet_Grid.setDisabled(newtabind != 0)
self.ui.action_import_existing.setDisabled(newtabind != 0)
self.ui.actionImport_from_GIF.setDisabled(newtabind != 0)
self.ui.actionImport_Images.setDisabled(newtabind != 0)
self.ui.actionEdit_Frame_Properties.setDisabled(newtabind != 0 or len(self.selected_labels) <= 0)
self.ui.menuExport.setDisabled(newtabind != 0)
Expand Down

0 comments on commit 8f485ee

Please sign in to comment.