PySimpleGUI / PySimpleGUI/PySimpleGUI
[ Enhancement] Answer Linux screen layout from cookbook
Personne n'a encore pris cette issue.
- Langage dominant
- Python
- Étoiles
- 13.8k
- Forks
- 1.8k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
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)
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par la section sur la disposition de l’écran sous Linux du cookbook lié dans l’issue et reproduisez la fenêtre de recette en utilisant location=(1680,80) avec les dispositions xrandr décrites. Documentez le comportement observé de (0,0) et la convention de coordonnées pour Linux, en faisant correspondre la réponse du cookbook à la configuration Debian/KDE signalée.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python
- Domaine
- documentation
- Type d'issue
- Documentation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100