Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Set Up GitHub
  2. Create a personal copy of the production software
  3. Type "source use_pydm.sh"
     
  4. Type "mkdir [Your Name]" and head into that directory
     
  5. Type "designer &"
  6. Sometimes you get an error saying something about backup files. Ignore it(: In the program window that openspops up, click "Widget" and then "Create"
     
  7. In the Widget box on the left, scroll all the way down and drag a drop a PyDMShellCommand somewhere in the widget that popped up in the last step
  8. Right click anywhere in the widget that isn't the tiny shell command button, hover over "layout" at the bottom, and click "lay out in a grid"
     
  9. In the Object Inspector in the top right, rename that button something more descriptive by double clicking it, typing the new name, and pressing enter
     
  10. Right click the button itself and click "Change text..."
     
  11. Rename it something more descriptive and press enter
  12. In the property/value table in the middle right, scroll all the way down to "commands," double click the value box (it'll be blank at first, and then it'll be a button that says "Change String List"), Click "New", type "pydm ~/opsTools/devPanel/example/example.py", then click "OK". This will launch the production example panel! 
  13. Save this file as devPanel[Your Name].ui
  14. From here, open opsDevPanel.ui from the parent directory (~/[your username]/devPanel)
  15. Drag and drop a PyDMRelatedDisplayButton onto the newly opened devPanel.ui 
  16. Right click rename the button itself and its object name like before
  17. Add the path to your personal dev panel in your subdirectory and save
     
  18. Back in your terminal in the devPanel directory, run "pydm opsDevPanel.ui" and you should see your creation! Feel free to play with it until it looks good to you!


  19. Run "git status" to see what's changed. It should be opsDevPanel.ui and a new folder with your name
  20. Run "git add [YOUR NEW FOLDER]" and "git add opsDevPanel.ui", then run another git status. They should both be staged for commit
  21. Run git commit -m "adding [YOUR NAME]'s dev panel"
  22. Run "git push origin master" and log in when prompted
     
  23. Back on your fork on GitHub, click "Pull Request"
     
  24. Click "Create Pull Request"
  25. Add slaclab/ops as a reviewer (by clicking on the gear and then searching), and then click "Create pull request"
  26. An admin will look at it to make sure that nothing important got deleted, and if they approve it, they'll merge it into production!

...