PySimpleGUI / PySimpleGUI/PySimpleGUI
[ Enhancement] Answer Linux screen layout from cookbook
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 13.8k
- Forks
- 1.8k
- PR merge metrics
- No merged PRs in 30d
Description
Type of Issues (Enhancement, Error, Bug, Question)
Answer to question in cookbook, hopefully "Enhancement"
Operating System
Linux (Debian, KDE)
Python version
Python 3.7.7
PySimpleGUI Port and Version
PySimpleGUI Version: '4.32.1 Released 17-Nov-2020'
tkinter version: 8.6.10
Your Experience Levels In Months or Years
10y_____ Python programming experience
30y_____ Programming experience overall
rarely_____ Have used another Python GUI Framework (tkinter, Qt, etc) previously (yes/no is fine)?
You have completed these steps:
- Read instructions on how to file an Issue
- Searched through main docs http://www.PySimpleGUI.org for your problem
- Searched through the readme for your specific port if not PySimpleGUI (Qt, WX, Remi)
- Looked for Demo Programs that are similar to your goal http://www.PySimpleGUI.com
- Note that there are also Demo Programs under each port on GitHub
- Run your program outside of your debugger (from a command line)
- Searched through Issues (open and closed) to see if already reported
- Try again by upgrading your PySimpleGUI.py file to use the current one on GitHub. Your problem may have already been fixed but is not yet on PyPI.
Description of Problem / Question / Details
In https://pysimplegui.readthedocs.io/en/latest/cookbook/ you ask for test in Linux:
I don't know if this technique works on Linux
My answer for my setup: yes, it does in Linux. But (0,0) is always assigned to the leftmost screen, independent of main screen (that with the task bar, assigned by the --primary command):
xrandr --output LVDS-1 --primary --auto --output DP-2 --left-of LVDS-1 --auto # [0,0]External [1920,0]Internal
xrandr --output LVDS-1 --primary --auto --output DP-2 --right-of LVDS-1 --auto # [0,0]Internal [1600,0]External
Also in KDE configuration, the left most screen gets automatically the first coordinate assigned to zero.
Code To Duplicate
simply the recipe window with the parameter location=(1680,80)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Linux screen-layout section of the cookbook linked in the issue and reproduce the recipe window using location=(1680,80) with the described xrandr layouts. Document the observed (0,0) behavior and coordinate convention for Linux, with the cookbook answer matching the reported Debian/KDE setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100