diff --git a/.gitignore b/.gitignore index 6ade96c..0c68aa2 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ *.swp *.bak uploads +.DS_Store diff --git a/README.md b/README.md index 1d735c3..998ec60 100644 --- a/README.md +++ b/README.md @@ -25,9 +25,19 @@ You can run Printrun directly from source, as there are no packages available ye `sudo apt-get install python-serial python-wxgtk2.8 python-pyglet` -### Fedora 15 and newer +### Fedora 17 and newer -You can run Printrun directly from source, as there are no packages available yet. Fetch and install the dependencies using +You can install Printrun from official packages. Install the whole package using + +`sudo yum install printrun` + +Or get only apps you need by + +`sudo yum install pronsole` or `pronterface` or `plater` + +Adding `--enablerepo updates-testing` option to `yum` might give you newer packages (but also not very tested). + +You can also run Printrun directly from source, if the packages are too old for you anyway, or you have Fedora 15 or 16. Fetch and install the dependencies using `sudo yum install pyserial wxpython pyglet` diff --git a/printcore.py b/printcore.py index 0849ee5..47a779c 100755 --- a/printcore.py +++ b/printcore.py @@ -461,12 +461,12 @@ if __name__ == '__main__': try: if statusreport: p.loud = False - sys.stdout.write("Progress: 00.0%") + sys.stdout.write("Progress: 00.0%\r") sys.stdout.flush() while p.printing: time.sleep(1) if statusreport: - sys.stdout.write("%02.1f%%\r" % (100 * float(p.queueindex) / len(p.mainqueue),) ) + sys.stdout.write("Progress: %02.1f%%\r" % (100 * float(p.queueindex) / len(p.mainqueue),) ) sys.stdout.flush() p.disconnect() sys.exit(0) diff --git a/printrun/bufferedcanvas.py b/printrun/bufferedcanvas.py index 85ad019..3e7049b 100644 --- a/printrun/bufferedcanvas.py +++ b/printrun/bufferedcanvas.py @@ -77,7 +77,7 @@ class BufferedCanvas(wx.Panel): ## General methods ## - def draw(self, dc): + def draw(self, dc, w, h): """ Stub: called when the canvas needs to be re-drawn. """ diff --git a/printrun/graph.py b/printrun/graph.py index daff989..4b36a7e 100644 --- a/printrun/graph.py +++ b/printrun/graph.py @@ -23,14 +23,13 @@ class Graph(BufferedCanvas): '''A class to show a Graph with Pronterface.''' def __init__(self, parent, id, pos = wx.DefaultPosition, - size = wx.DefaultSize, style = 0): + size = wx.Size(150, 80), style = 0): # Forcing a no full repaint to stop flickering style = style | wx.NO_FULL_REPAINT_ON_RESIZE #call super function - #super(Graph, self).__init__(parent, id, pos, size, style) - BufferedCanvas.__init__(self, parent, id) + super(Graph, self).__init__(parent, id, pos, size, style) + #BufferedCanvas.__init__(self, parent, id) - self.SetSize(wx.Size(150, 80)) self.extruder0temps = [0] self.extruder0targettemps = [0] diff --git a/printrun/gui.py b/printrun/gui.py index 24024fa..5c0385e 100644 --- a/printrun/gui.py +++ b/printrun/gui.py @@ -224,7 +224,7 @@ class MainToolbar(wx.BoxSizer): root.serialport = wx.ComboBox(root.panel, -1, choices = root.scanserial(), - style = wx.CB_DROPDOWN, size = (150, 25)) + style = wx.CB_DROPDOWN, size = (-1, 25)) root.serialport.SetToolTip(wx.ToolTip("Select Port Printer is connected to")) root.rescanports() self.Add(root.serialport) diff --git a/printrun/xybuttons.py b/printrun/xybuttons.py index 0f6865e..3be412f 100644 --- a/printrun/xybuttons.py +++ b/printrun/xybuttons.py @@ -60,8 +60,7 @@ class XYButtons(BufferedCanvas): self.bgcolor.SetFromName(bgcolor) self.bgcolormask = wx.Colour(self.bgcolor.Red(), self.bgcolor.Green(), self.bgcolor.Blue(), 128) - BufferedCanvas.__init__(self, parent, ID) - self.SetSize(self.bg_bmp.GetSize()) + BufferedCanvas.__init__(self, parent, ID, size=self.bg_bmp.GetSize()) # Set up mouse and keyboard event capture self.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown) diff --git a/printrun/zbuttons.py b/printrun/zbuttons.py index 1b79f40..101d1a4 100644 --- a/printrun/zbuttons.py +++ b/printrun/zbuttons.py @@ -46,9 +46,7 @@ class ZButtons(BufferedCanvas): self.bgcolor.SetFromName(bgcolor) self.bgcolormask = wx.Colour(self.bgcolor.Red(), self.bgcolor.Green(), self.bgcolor.Blue(), 128) - BufferedCanvas.__init__(self, parent, ID) - - self.SetSize(wx.Size(59, 244)) + BufferedCanvas.__init__(self, parent, ID, size=wx.Size(59, 244)) # Set up mouse and keyboard event capture self.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown)