diff --git a/.gitignore b/.gitignore index 30fa33a..07ccde8 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,6 @@ /.vs *.png *.svg -*.txt /StarMapGen/src/ZCoordExample.jpg /StarMapGen/src/Sector001.jpg /StarMapGen/src/RaelSectorMap.jpg diff --git a/README.md b/README.md new file mode 100644 index 0000000..1f34745 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# StarMapGen + +please see [this site](https://expandingfrontier.com/2020/04/star-map-generator-gui-edition/) for more information. diff --git a/StarMapGen/src/SMGMapPanel.py b/StarMapGen/src/SMGMapPanel.py index b049479..7944864 100644 --- a/StarMapGen/src/SMGMapPanel.py +++ b/StarMapGen/src/SMGMapPanel.py @@ -10,10 +10,10 @@ class SMGMapPanel(wx.Panel): def __init__(self,parent,w=20,h=20): super(SMGMapPanel,self).__init__(parent) - self.mapFile = "BannerMap.svg" + self.mapFile = "StarMapGen\images\BannerMap.svg" self.img = wx.svg.SVGimage.CreateFromFile(self.mapFile) ratio=w/h - self.SetMinSize(wx.Size(400*ratio,400)) + self.SetMinSize(wx.Size(int(400*ratio),400)) self.Bind(wx.EVT_PAINT,self.onPaint) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..f1838cd --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +wxPython +cairocffi