mirror of https://github.com/kivy/kivy.git
Merge pull request #1679 from inclement/screendoc
Fixed syntax in screen module error message
This commit is contained in:
commit
e23c96b8d0
|
@ -89,8 +89,8 @@ def usage(device=None):
|
|||
if device:
|
||||
Logger.error('Screen: The specified device ({0}) is unknown.',
|
||||
device)
|
||||
print('\nModule usage: python main.py -m screen,deviceid[,orientation]\n')
|
||||
print('Availables devices:\n')
|
||||
print('\nModule usage: python main.py -m screen:deviceid[,orientation]\n')
|
||||
print('Available devices:\n')
|
||||
print('{0:12} {1:<22} {2:<8} {3:<8} {4:<5} {5:<8}'.format(
|
||||
'Device ID', 'Name', 'Width', 'Height', 'DPI', 'Density'))
|
||||
for device, info in devices.items():
|
||||
|
@ -98,11 +98,13 @@ def usage(device=None):
|
|||
device, *info))
|
||||
print('\n')
|
||||
print('Simulate a medium-density screen such as Motolora Droid 2:\n')
|
||||
print(' python main.py -m screen,droid2\n')
|
||||
print(' python main.py -m screen:droid2\n')
|
||||
print('Simulate a high-density screen such as HTC One X, in portrait:\n')
|
||||
print(' python main.py -m screen,onex,portrait\n')
|
||||
print(' python main.py -m screen:onex,portrait\n')
|
||||
print('Simulate the iPad 2 screen\n')
|
||||
print(' python main.py -m screen,ipad\n')
|
||||
print(' python main.py -m screen:ipad\n')
|
||||
print('If the generated window is too large, you can specify a scale:\n')
|
||||
print(' python main.py -m screen:note2,portrait,scale=.75\n')
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue