Commits

Westley Martínez committed 460122b

Make palette sort by filename.

  • Participants
  • Parent commits 4cd95bf
  • Branches stable

Comments (0)

Files changed (1)

File mapeditor.pyw

         obj = self.palette.create_rectangle(x, y, x + self.tile_size,
                                             y + self.tile_size, fill='blue')
         x += 1
-        for file in os.listdir(tile_dir):
+        for file in sorted(os.listdir(tile_dir)):
             filename = os.path.join(tile_dir, file)
             if os.path.isdir(filename):
                 continue