Download [#ROOT-5450] Small formatting errors in Python user`s

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
[ROOT-5450] Small formatting errors in Python user's guide chapter Created:
29/Aug/13 Updated: 30/Aug/13 Resolved: 29/Aug/13
Status:
Project:
Component/s:
Affects
Version/s:
Fix Version/s:
Closed
ROOT
Documentation
None
Type:
Reporter:
Resolution:
Environment:
Bug
Christoph Deil
Ready for test
Online web pages
None
Priority:
Assignee:
Votes:
Medium
Olivier Couet
0
Description
It seems that in the convertion to Markdown User's guide the Python code example indentation
was lost. All examples that define a Python class here aren't indented and thus won't work:
http://root.cern.ch/download/doc/PythonRuby.html
Here's an example:
**Now**
class myButton(QPushButton):
def __init__( self,label,master):
QPushButton.__init__(self,label,master)
self.setFont( QFont('Times',18,QFont.Bold))
**Should have 4 space indentation**
class myButton(QPushButton):
def __init__( self,label,master):
QPushButton.__init__(self,label,master)
self.setFont( QFont('Times',18,QFont.Bold))
Comments
Comment by Olivier Couet [ 29/Aug/13 ]
Should be fixed.
As I am not familiar with the Python syntax can you please check if I did the right thing and let me know ?
Thanks.
Comment by Christoph Deil [ 29/Aug/13 ]
Here are some more indentation fixes (and changing print 'hello world' to print('hello world') to make it
work on Python 3 also.
New version:
https://gist.github.com/cdeil/6382035/raw/150228306b82f5150e878c28edb37d8ccdf52489/PythonRuby.md
Diff:
https://gist.github.com/cdeil/6382052
There's a few other minor improvements I'd like to make for the Python examples ... is there a way to make
pull requests with ROOT or what is the preferred way to make a contribution?
Comment by Olivier Couet [ 30/Aug/13 ]
Thanks for the mods. They are in place.
The simplest in the future is to send me the complete modified
file by email: [email protected]
Generated at Fri May 05 22:34:26 CEST 2017 using JIRA 7.2.7#72009sha1:68b7d86b7e8716f76c1f28a5095acccf67bb75b1.