salut à tous . je recherche le moyen de fixer la taille et l'emplacement d'une fenêtre MainWindow mais je trouve pas;
Pourriez-vous m'aider s'il vous plaît ?
salut à tous . je recherche le moyen de fixer la taille et l'emplacement d'une fenêtre MainWindow mais je trouve pas;
Pourriez-vous m'aider s'il vous plaît ?
Q: ça sert à quoi Internet Explorer ?
R: A télécharger Mozilla Firefox
La documentation de Tk::Wm dit :
--$toplevel->geometry(?newGeometry?)
If newGeometry is specified, then the geometry of $toplevel is changed and an empty string is returned. Otherwise the current geometry for $toplevel is returned (this is the most recent geometry specified either by manual resizing or in a geometry method). NewGeometry has the form =widthxheight+-x+-y, where any of =, widthxheight, or +-x+-y may be omitted. Width and height are positive integers specifying the desired dimensions of $toplevel. If $toplevel is gridded (see "GRIDDED GEOMETRY MANAGEMENT" below) then the dimensions are specified in grid units; otherwise they are specified in pixel units. X and y specify the desired location of $toplevel on the screen, in pixels. If x is preceded by +, it specifies the number of pixels between the left edge of the screen and the left edge of $toplevel's border; if preceded by - then x specifies the number of pixels between the right edge of the screen and the right edge of $toplevel's border. If y is preceded by + then it specifies the number of pixels between the top of the screen and the top of $toplevel's border; if y is preceded by - then it specifies the number of pixels between the bottom of $toplevel's border and the bottom of the screen. If newGeometry is specified as an empty string then any existing user-specified geometry for $toplevel is cancelled, and the window will revert to the size requested internally by its widgets.
Jedaï
merci Jedai il fallait donc chercher dans la classe mère.
Q: ça sert à quoi Internet Explorer ?
R: A télécharger Mozilla Firefox
ou plus simplement :
$main_window->geometry("largeurxhauteur+position_x+position_y") ;
Progresse en programmation
je met un exemple pour les gens que ça intéresse :
Bon courage
Code : Sélectionner tout - Visualiser dans une fenêtre à part MainWindow->geometry(640x480)
Q: ça sert à quoi Internet Explorer ?
R: A télécharger Mozilla Firefox
ou pour les decalages
Code : Sélectionner tout - Visualiser dans une fenêtre à part MainWindow->geometry("700x600+20+20");
- Les meilleurs cours et tutoriels Perl et Perl 6 pour vous former ;
- FAQ Perl, Perl 6 et Perl/Tk d'entraide ;
- Les news sur la rubrique Perl ;
- S'abonner au compte Twitter de la rubrique Perl ;
- Mes tutoriels developpez.com.
Pas de questions technique par messagerie privée (lisez les règles du forum Perl) et pour les nouveaux !
Vous avez un bloqueur de publicités installé.
Le Club Developpez.com n'affiche que des publicités IT, discrètes et non intrusives.
Afin que nous puissions continuer à vous fournir gratuitement du contenu de qualité, merci de nous soutenir en désactivant votre bloqueur de publicités sur Developpez.com.
Partager