JMP gradation (solid)

Perl tk status window. You signed out in another tab or window.

Perl tk status window. Tkx::Tutorial - How to use Tkx.

Perl tk status window Tkx is a Perl module that makes the Tk This tutorial will quickly get you up and running with the latest Tk from Python, Tcl, Ruby, and Perl on macOS, Windows, or Linux. Excerpt from the method that sets up the GUI (just to give you an idea): This kind of thing, windows event handling, is just not well documented - and I suppose we shouldn't be surprised that it isn't. after MainLoop), otherwise you won't get a valid window handle. And, connecting those buttons to some desired actions. x Tcl/Tk version from ActiveState. This command is typically invoked when mouse button 1 is released over the button window. Specifically, I'm looking for ways to determine the monitor dimensions in pixels, which is what Tk's screenwidth and screenheight return. exit Versus destroy. do NOT grab the focus) 0. It links against an existing but separate Tk library. You then create items inside the main window, or create new windows, before starting the mainloop. Apr 24, 2001 6 GB. al and C:\Perl\site\lib\Tk\Wm. Jan 21, 2006 However, if another window related to it has the focus (i. Even if by a hack you disable the "close" button the user can always bring it back if the window manager permits this. 1. If you are not currently reading this document courtesy of the widget demonstration program, please be sure to run widget, as it will show you the various widget types supported by Tk and how to use them. Is there a way to have a modal window within a main window? What I mean is a child window of another, where you cannot click on any other window (sort of like how it is when you have a dialog box) I'm creating all these new windows in my program and I don't want users to go to previous ones. I’m sure that there are What are you trying to do exactly? If you want to get into scripting with Perl (or another language), may I suggest you try Windows Subsystem for Linux instead? It will give you a proper development environment with a powerful terminal and perl with CPAN packages will work much better (and faster). Re: installing Tk for strawberry by Xevier_Strong (Initiate) on May 27, 2010 at 07:22 UTC This tutorial will quickly get you up and running with the latest Tk from Python, Tcl, Ruby, and Perl on macOS, Windows, or Linux. However occasionally I have wanted a dialog window that has the title bar close button but not the minimise or maximise buttons or some combination of buttons :) I have yet to be able to come up with a way to do Although the different geometry managers have their own strengths and weaknesses, the most commonly used is pack(), so I'll discuss it first and in the most detail. I posted a more involved Tk starter script at the original node, Re: select input file from windows explorer that shows the file type options. Re: Re: Maximise or minimise Perl/Tk Main Window by blackadder (Hermit) on Sep 18, 2002 at 12:22 UTC. pod. Looking at your code I note that you use English;. sudo apt-get install libx11-dev; sudo cpan -i Tk; perl test-menu. Node Status? node history Node Type: perlquestion [id://869888] Approved by McDarren help: Chatterbox? Specifies a perl/Tk callback to be executed when the user browses through the entries in the Specifies the desired height for the window in number of characters. This is a nifty trick I discovered for fixing a "problem" with fullscreen PerlTk windows. It inherits Tk::MainWindow and adds a lot of features to it like: Perl . This code worked on windows 7, with strawberry perl 5. Now, I wanna be able of hiding/showing these frames how I choose (along with the stuff on the frames)! Replies are listed 'Best First'. Adding A Status Display Area. I'm writing a gui front end to a command line text indexing tool and am having trouble getting a status window to open. Adding Radiobuttons. Log In? Username: Password: remember me What's my password? Create A New User. 3 as well. Perl/Tk creates windows of the class TkTopLevel. The WM_DELETE_WINDOW property callback is invoked when the window has been deleted by the window manager. Mainwindows do not have a background, you have to fill them with widgets that have the background capability, and according to your needs, the ability to place widgets on top. I would like to tie the same "cleanup" process associated with the "CLOSE" button I created to the standard Replies are listed 'Best First'. You might want to change that to use English q{-no_match_vars}; to avoid a performance hit against any regular expression matching in your code. The program is then unconditionally terminated, You signed in with another tab or window. Have a look at the perl/Tk documentation. Find Tk's window information for an X window . If you don't want to use a bitmap, or have a different format of file (such as a GIF), you can use the -image option. First Requirements. Creating A Window. pl. O’Reilly One thing a Checkbutton might do immediately when clicked is alter the appearance of the window. First create an image pointer and then use the -image option to display the image. pl the response is Can't locate utils/stat. Tk is a toolkit for creating applications with graphical interfaces on Windows, Mac OS X and X11. Each label and/or progressbar section can Hello All I was wondering if anybody had any scripts using the TK module and it's various widgets that they wouldn't mind posting? I'd like to start using the module in some server reporting scripts but am not really sure where to start. exe: wperl c:\yourdir\yourTKscript. To be more precise, most Unix window managers can do something like "Always on top", but there's no X11 standard. O’Reilly Re^2: How to set the MainWindow agile to the context in Perl/Tk by Janish (Sexton) on May 18, 2015 at 01:42 UTC. . The problem is that it's just too slow. It is the root of a widget tree. 1455. a graphical user interface toolkit for Perl. What library are you using to make the &quot;window&quot;? Tk is the most popular, but I An extendable application framework written in perl/Tk. How to search for a window in perl. snotnose Ars Tribunus Militum. Jun 22, 2004 #1 Edge118 Programmer. Debian/Ubuntu: apt-cache search A good setup for Perl on Windows (32 and 64 bit): Window tools; Make sure you do not have any version of Perl already installed. Feb 6, 2002 1,851 IL. I have a simple tk Status Not open for further replies. The colormap on the 8bit windows is hammered and the gif's and buttons are in black and white. HI, How can I control window width with Tk::FileSelect ? The default browsing window that opens is too narrow,I'd like to have it wider. pl thanks. by gri6507 (Deacon) on May 27, 2004 at 15:36 UTC: Maybe this will help. I'm using Perl FileSelect from the Tk::FileSelect module. Our subroutine Get Mastering Perl/Tk now with the O’Reilly learning platform. Use PageUp/PageDown, Left/Right, and Up/Down to go to the previous/next image in the list. DESCRIPTION. The "close" button is managed by the Window Manager of the desktop which is a completely different process that you have no control on. You'll also need a C NAME. what's the function? Dec 4, 2001 1,300 US. br, comma . At least with Active State, Tk comes with the distribution, so there is nothing to install. I would like also to be able to let my program interact with the terminal, at least I would like Your main script is probably waiting for a return from the call to Perl. If the subject is new to you, or if there are points you don’t understand, then please read Mastering Perl/Tk, Chapter 14, Creating Custom Widgets in Pure Perl/Tk, for complete The callback argument to bind is a perl/Tk callback. Also except in unusual cases you shouldn't need more than one call to MainLoop . Creating a background window (i. A program should also use use strict and the -w switch to ensure the program is working without common errors. Merely copying isn't sufficient. another Tk window from the same Perl process, or the command-prompt window running the process) then deiconify just brings the window to your focus. Tk::DragDrop::Common. I only have my . notify widgets that image needs to be redrawn . Unlike the standard Tcl/Tk's wish, perl/Tk allows you to create several MainWindows. Contribute to eserte/perl-tk development by creating an account on GitHub. Perl/Tk script to provide a graphical user interface for testing Perl/Tk commands and scripts. Currently, it obtains a list of all jpeg files (specifically, files matching *. Specifically, the call to X->ReparentWindow does not work. I don't know why this is isn't happening automatically for you. I wanted to take few parameters from user but parameters on window 3(consecutive window) are dependent on parameters chosen from window 2 so I wanted different windows for different Install Tk for Perl (Tkx) on macOS. It provides all the essentials about core Tk concepts, the various widgets, layout, events and more that you need for your ColorEditor allows some customization: you may alter the color attribute menu by adding and/or deleting menu items and/or separators, turn the status window on or off, alter the configurator's list of color widgets, or even supply your own custom color configurator callback. Jul 7, 2005 perldoc Tk::Wm might help. Update I got this from searching here for "Tk center screen". Reload to refresh your session. Steps to reproduce: Install libX11, install Tk, run sample code. Essential Perl/TK Programming. Adding An EXIT Button. I know of one thing you can do about the maximize button: Re: how can i create a scrollbar in the main window using perl tk by kutsu (Priest) on Dec 18, 2008 at 07:01 UTC: Check the documentation, you can find an example at the More Callbacks link. pl line 2. In the absence of evidence, opinion is indistinguishable Perl/Tk Fullscreen Windows 1. which will be executed whenever the given event sequence occurs. I've put In Tk Perl stays in the MainLoop either you call the TK specific exit routine, which closes out the main window, or directly call destroy on your main window object. The Tk toolkit is native to the Tcl programming language, but its ease of use and cross-platform availability has made it the GUI toolkit of choice for many other dynamic languages. The "wPerl" file is available in ActiveState Perl package. Feb 8, 2000 1,606 US. if used didn't click the ok or calcel button I want to take the default value cancel. However, I am working on Windows ME and also need the window to go over the window bar at the bottom of the screen (the one with the 'Start' button, and list of windows that you have open). Could anyone please tell me, how to set the fixed size, so that, it won't change depends on the following factors, - Any resolution we set in our desktop - Any system we use - Any OS we use Code Snippet i used in Perl: Thus, before you update the status, check the variable to ensure the window is open. When called, the xterm application should have moved from displaying in a separate window managed by the window manager to displaying inside the A statusbar widget for Perl/Tk. The statusbar can be configured with any number of label sections and progressbar sections. The Balloon Widget. Here's a full working example. However, for my dual monitor setup, half of the main window is displayed on the left monitor and half is displayed in the right monitor. Oct 4, 2002 971 US. For example, it may be used to indicate whether a directory is opened or closed. TK: close window . Then commands ' make Tk ', ' test Tk ' and ' install Tk ' in CPAN console should work. 22000. Any Perl/Tk application starts by creating the Tk MainWindow. Name: indent that is displayed to the left to an entry to indicate the status of the entry. Tk takes a little playing with to figure out &quot;how you do&quot; what &quot;you want to do&quot;. Tk was originally developed as an extension to the Tcl language, for use with the X Window System on Unix. While the Tk extension to the Tcl language has been successfully ported to Microsoft Windows, the Perl port is still pending, although it is rumored to be in the works. This works fine as long as you have done a use Tk; in the same file. Example: $ ppm ppm> search net-smtp ppm> install Net-SMTP-Multipart. com | www. In the sub, I create a command I would implement what you're trying to do with a status bar that notifies individual changes, some sort of window with a log of status changes as they occur, or perhaps even both. private class used by Drag&Drop . pm. Generic methods available to all widgets include the methods based on core winfo mechanism and are used to retrieve information about windows managed by Tk. Why not create a status window the user cannot close (surely Tk allows you to create windows without minimize, maximize, closing functionality). The solution So my GUI (that is, Perl/Tk) application displays a window that captures user input in fields, etc. You have NO idea how glad I am to learn about the WM_DELETE_WINDOW protocol I'm just trying to see if there is a way of specifing the colour depth of the window that is opened up by perl/tk. I've also messed around with Win32: rocess and its options of allegedly not showing a GUI window for the process it's launching, and never had much luck with that either. see How do I install Perl modules? in the CPAN FAQ. Modules. 6. The Tcl::pTk extension (not to be confused with the "native" perl5 Perl/Tk extension) provides a complete interface to the whole of Tk via the Tcl extension. 1 and Tk 804. Thread starter Kirsle; Start date Mar 25, 2006; Status Not open for further replies. Domain Nodelet? www. It provides all the essentials about core Tk concepts, the various widgets, layout, events and more that you need for your application. com I understand that <<Unix window managers do not have such a "Always on top" feature. You signed out in another tab or window. By default Perl/Tk makes use of client side fonts via freetype2, fontconfig and Xft on Unix systems. Chatterbox? and the I would like to be able to create the log window first and insert parsing status as it goes through the array, otherwise the users might think the computer is frozen and start clicking like mad. Radiobutton Graphic Examples. See the POD documentation for more details. Thread starter MoshiachNow; Start date Aug 17, 2006; Status (I tend to start my searches with "Perl/Tk" and then what I'm looking for, i. There may well be problems with no fix that can be made common to all of the platforms Perl-Tk will run on. Re: Tk centering main window on screen. undefined reference to `Imm You need to link to libimm32. Although returning 0 for success is a unix convention, there are plenty of commands that use non-zero to distinguish different sorts of successful runs. Replies are listed 'Best First'. Mar 22, 2005 #1 mlibeson Programmer. Win11, StrawberryPerl 5. You must call this after the window has been mapped (i. It seems like all the built-in Windows commands require a cmd window to be present, and so if there isn't one then it When I try to run a simple Perl script containing the instruction 'use Tk' in Windows 11 I get the following message: Can't locate Tkx. A program should also use use strict and the -w switch to ensure the program is working without common errors. Hey zentara, Thank you for your response. Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand; OverflowAI GenAI features for Teams; OverflowAPI Train & fine-tune LLMs; Labs The future of collective knowledge sharing; About the company Having more or less converted a lot of old Tk scripts over to Tkx I'm stuck for an port for the following function which repositions the window passed in as a parameter in the centre of the screen. Otherwise use cpan or cpanm to do the installation. Perl . It actually requires a Tcl formatted list, which is a string with elements separated by spaces, and braces around all but the simplest elements. one that is embedded in your Tk window, and the former is working while the latter is proving to be a difficult challenge, it sounds like something that isn't really broken, and so maybe shouldn't be fixed. exe. 10. 0 and 804. I'm seeing the same issue with v5. 1. Perl/Tk App and Interprocess Communication Another approach would be using POE, an "event driven" framework to sum it up shortly. Feb 5, 2007 #1 Feb 5, 2007; Add bookmark #1 I've got a perl/tk window, and I've got 1 line in a label Replies are listed 'Best First'. 0. There's a simple one-liner in the upcoming example that handles converting fairly simple lists, but for Perl/Tk is an extension for writing Perl programs with a Graphical User Interface (GUI) on both Unix and Windows 95/NT. Doesn't stop the user from closing the window right in the middle of your update though. 38. Then pass the image pointer as a value Most of this column is not about modo and how it works, but rather the Perl/Tk features it uses. In active state, the button is drawn with the platform specific Perl's system does not return 0 on success. This tutorial will quickly get you up and running with the latest Tk from Python, Tcl, Ruby, and Perl on macOS, Windows, or Linux. Tk::MainWindow is a special kind of Toplevel widget. I would like to open a second main window before a pipe is opened to run the index command. I'm working on an X system that allows you to open 24bit windows on an 8bit root window, and all windows opened by perl/tk are 8bit. Re: Tk::Wizard not redrawing window correctly by johngg (Canon) on Mar 07, 2007 at 11:10 UTC: I'm glad you managed to solve your problem. update by Anonymous Monk on Jul 02, 2004 at 15:03 UTC. How is it done? I am using a tabbed Notebook widget, and one of the tabs has a wide table. The status of the button is either on or off, depending on whether it is checked. The grid() geometry manager was under development as I was writing this book. You switched accounts on another tab or window. A 'Pane' widget is just a scrollable frame, so no more griding widgets into a frame and placing the frame into scrolled canvas to wander about them. On Windows: If you're using ActivePerl on Windows, the PPM (Perl Package Manager) has much of the same functionality as CPAN. Perl programs that use Tk need to include use Tk. Status I am trying to create a GUI window using perl. Some widget-specific options and options of interest are listed below. window color Start date Oct 29, 2003; Status Not open for further replies. The legal forms are: Please excuse my noobishness but I'm learning Perl and what is a Perl module? the perl module Tk. Perl/Tk is a cross platform thing - X and MS-Win equally covered. IPC::Open2 is a core module what will run a program in the background, and it's portable. In \Perl\bin there is an executable called wperl. grid has been improved greatly with the release of Tk 8. Locked; Sometimes the terminology becomes confusing when talking about state and status. Numbertwo February 6, 2024, 6:45am 16. They can take any of a number of different forms, depending on the method. Tkx::Tutorial - How to use Tkx. (It uses system 1, in Windows, and fork+exec in unix. Adding Frames To A Window. It assumes you know some Perl, and have it and Tk running. Open a cmd window, type cpan, type Install Tk eventually I get: Unable to install Tk module for Strawberry Perl and responses. The second window does open, but, only after the pipe has closed and the sub has completed, returning the app back to the MainLoop. Re^3: Run another program without If you don’t want to use a bitmap, or have a different format of file (such as a GIF), you can use the -image option. Oct 23, 2003 15 FR. On one computer I programmed in Perl/Tk on, DialogBoxes would only have the X button on them, but the other two weren't there at all. org. 0. Re: Maximise or minimise Perl/Tk Main Window by Anonymous Monk on Aug 06, 2007 at 17:31 UTC I have a TK gui used for updating a database. >> If no directory is specified, it uses the current directory. Perl TK resize window. If you assign a new callback, your callback will be invoked instead of the default callback. the perl module Tk. Mar 6, 2002 311 0 0 US. The Tk module for Perl is an XS module with C code that needs compiling. I pasted your code into a file and ran it from a DOS window with: perl hello. By default, the FileSelect main window is displayed in the middle of the screen. I found an example of how to embed an arbitrary X application window in a Perl/Tk Notebook widget. At this writing, the Tk module to Perl (also known as pTk) only runs on UNIX machines with the X Window System. xwininfo bring the selected window to the front. Windows version: 10. However, I am unable to make it work. It worked. 2. I own &quot;Learning Perl/TK&quot; and it doesn't mention anything about a 'Pane' widget, which does happen to be in the copy of &quot;Mastering Perl/TK&quot; I got from the library today. Just curious -- it's the first thing I would try, because it's the standard method for hooking into perl's shut-down procedure, but I've never tried it in a Tk app, and I don't know whether that raises issues. This may push down maximized programs, though I'm not sure. It looks like for exectype to work you already need a . That I'm writing a gui front end to a command line text indexing tool and am having trouble getting a status window to open. When your callback GUI_OPEN_NETLIST returns the MainLoop will resume, explicitly calling MainLoop will likely lead to odd bugs later. Also on another topic you asked about disabling the Re^2: Run another program without blocking or exiting (Perl/Tk). Ok, say I made this nice GUI in Tk, where I have created several Tk::Frame's (Tk::LabFrame) to seperate the GUI in different sections. Perl/Tk applications (which have windows associated with them) create one or more MainWindows which act as the containers and parents of the other widgets. > at hello. e. I would like to have a sub window where a terminal (Bash based terminal) would run. Perl Tk Active Window. Thanks to you Dree and Alf,. Interestingly, the problem does not appear if the code is executed in the debugger, suggesting a difference in the way code is compiled/executed/??? inside and outside of the debugger. Tk::DragDrop::SunConst. For modern Tk programming using Perl, the "Tkx" module is highly recommended, and we'll be using that here. The Checkbutton might look something like the (regardless of the status of its indicator), it will call the subroutine pointed to by -command. mouse_moved, minimise_button_pressed, window_moved, window_resized. About; Sponsor; grep::cpan; Recent; FAQ; Tools; API; Identities; Profile; Favorites; Logout GitHub This method is used to add a label section to the status bar widget, and can therefore accept all the same arguments that a Tk-Label can accept. On Linux, the default icon is that of a generic application icon (i. With Checkbuttons and Radiobuttons, there is the indicator’s status (or value) and the state of the Button itself. A useful reference when using Win32::API is here, it talks about Visual Basic but you can fairly easily convert it to Ok, i got the statuse bar I want, my window is made up of two frames, the top has a Scroll widget, the bottom has three Labels, only i have them in the right order, only the formating is off, i need the first on to streach acrossed the whole screen, the seccond one is set lenght,as well as the third. Table of Contents Essential Perl/Tk Programming A Graphic Authorizing Example TK Overview A Pay Calculator Example use Win32::API; Win32::API->Import('user32', 'FindWindowA', 'PP', 'N'); my $title = 'Title/Window Caption of StatusBar Window'; if (FindWindowA(0, $title)) { # window exists, do status bar I need to create a status bar at the bottom of my window, not a progress bar, but a bar that shows the file name '$file_name' and the line and collum the You could try Tk: ockFrame to dock your program at the top. Re: perl/TK - background image by zentara (Cardinal) on Sep 26, 2006 at 20:00 UTC: You need to learn the difference between a window and a widget. jpg) in the directory and shows them in slideshow. The user clicks a 'Do it!' button and that button calls a sub{}. If on Windows it should already be installed in the Activestate HTML docs or if on *nix then go to the appropriate perl lib dir and then to the Tk dir. Subscriptor. Similar threads. For this article, I’ll presume basic knowledge of mega widgets. Does anyone know how to retrieve these messages? Thanx in advance, Node Status? node history Node Type: perlquestion [id://203642] Approved by diotalevi Front-paged by tye help. I did use Win32::GUI once for such a simple project. Questioning authority". Re: stay-on-top property for Toplevel for Perl-Tk GUI by dree (Monsignor) on Oct 15, 2002 at 14:21 UTC: Playing with groups. I would like to open a second main window before a This module implements a configurable statusbar. hi, anyone know how to disable a perl window with tk? thanks for your help! Sort by date Sort by votes Apr 23, 2001; 1 #2 goBoating Programmer. Thanks, thats just what I needed. 5. Node Status? node Tek-Tips is the largest IT community on the Internet today! Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet! After installing CPAN module with command perl -MCPAN -e "shell", add path c:\Perl\site\lib\auto\MinGW\bin to system PATH and restart window with CPAN console. This bug will be fixed in the next release, but if you want to fix it now, then add the marked 3 lines to the Popup subroutine in the following files: C:\Perl\site\lib\auto\Tk\Wm\Popup. 23. In Tk Perl stays in the MainLoop either you call the TK specific exit routine, which closes out the main window, or directly call destroy on your main window object. Constants for Sun's The xterm sets those two environment variables to the window's height and width, respectively, in characters, but since the xterm being run by your Perl/Tk script is in a sub-shell, the values for that particular xterm window won't be accessible by the perl script. exe found in your perl\bin directory One caveat about Tk, and it's a serious one. Any perl program that uses Tk needs to include use Tk. It is like Gmail Chat window. "Perl/Tk menu" or "Perl/Tk icons" etc. "Science is about questioning the status quo. pm in @INC (you may need to install the Tkx module) (@INC con Great, that works awesome for keeping it on top of other windows. pm Replies are listed 'Best First'. exe that will run a script without opening the Use pack and packForget. Mar 25, 2006 #1 Kirsle Programmer. Perl/Tk defines its own exit routine, which does some cleanup and various other things that are important to Tk. hi, any update so far, is Tk module still cannot be loaded into Windows 11 ? Until it is working we recommend using Tkx on windows instead of Tk. By this I mean, the window does slowly move in the direction I'm dragging it, but while it's moving, it also keeps flickering in another position up and to the left of its current one. So, to get the latest version of Tk for Perl, we're going to have to do first download the latest 8. To create an image pointer, use the Photo method to point to the image file, supplying the full pathname if the file is not in the current directory. 12. Tk_ImageChanged. Keeping the window in dialog. Re^2: Tk onExit Status Not open for further replies. ) I believe IPC::Run will do the same and has a better API, but it's not a core module. g. net | www. Fixed Getopt::Long exception when monkchat is run with the '--debug' or '-d' option: I want to exit the mainwindow after 5 seconds from the program is started. pod/pTk/InternAtom. Re^2: PerlTk Busy vs. May 27, 2006 #1 Kirsle Programmer. 029. Jun 15, 2004 104 US. What do I need to achieve this? By default it displays in top left corner. Re^6: embedding xterm in perl/tk window NAME. In the sub, I create a command Help us out by opening an issue or pull request on GitHub. Increment And Decrement A Date Example. pl; WSL logs: weston. I'm having a problem with the users closing the window via the button in the top right hand corner and leaving the database connection open. is there any update on Tk I don't have much experience with perl/tk, but I'm using it for a script made to run on windows which gathers some data then creates and opens an html file with the output. How do I change the text of a label field after the window has been It creates a 400x400 orange window a little ways away from the top left corner of the screen. A Pay Calculator Example. This seemed like a simple task, but I've been unable to find the answer after a rigorous search. Thread starter Xaqte; Start date Jan 18, 2005; Status Not open for further replies. I tried with wsl v1. Yes it is on Windows. Thanks guys, this is much more help than I expected to get over the weekend. Perl/Tk - open window by event 1. The Win32 FindWindow API call will return a handle to a window with the specified title and class. Adding A Menubar. Aug 7, 2003 22 FR. I have not found a way to 'disable' a window. This is a silly and trivial example but it shows building a simple interface and with some buttons. Jan 18, 2005 #1 Xaqte IS-IT--Management. Update: I must not have been clear enough. The window has a label status field and should show what programming code decides. Jun 24, 2003 e. In most of the examples in this book, you will see sub {exit;} ( or its equivalent, \&exit) used to quit the Perl/Tk application. To create an image pointer, use the Photo method to point to the image file, supplying the full pathname if the file is not in the Replies are listed 'Best First'. Status Not open for further replies. The place() geometry manager is the most tedious to The Perl Tk module still can’t be supported on Windows for recent versions of Perl. Re: Tk on Win32 - how to avoid background console window by strat (Canon) on Jan 18, 2005 at 08:03 UTC: if you use activestate perl under windows, you could run it with the wperl. I need to read all the messages that are sent to a perl/tk window eg. Many distributions ship a lot of perl modules as packages. return and Tk->break may be used inside a callback to control the processing of matching callbacks. 2. Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: Any perl program that uses Tk needs to include use Tk. TK Overview. Aug 19, 2003 #1 julie25 Programmer. This time we'll learn how to schedule asynchronous timer events, look more closely at window manager commands, menus, menubuttons and the ColorEditor, and create and explain in detail an object oriented Perl/Tk composite widget, the Odometer. S. ) Otherwise, check the Tk:: modules on the CPAN page, Status Not open for further replies. Hi, I am using: Anyways I have used "wPerl" with Perl/Tk to eliminate the command window for the main process. It has full perl/tk compatible syntax for running existing perl/tk scripts, as well as direct-tcl syntax for using any other Tcl/Tk features. Re: Win32::Start Perl/Tk Script Without Annoying DOS Window by jsprat (Curate) on Jul 04, 2003 at 02:18 UTC: Or if you use ActiveState Perl (maybe others?), Just use wperl. pm and found it in C:\Perl\lib\File. log My requirement is to write Perl script to start/stop windows service for series of windows services and send an email with status report. All the man pages in POD format are available. Anyway to do this? - Ben Re: Perl/Tk Chatterbox Client by converter (Priest) on Oct 31, 2002 at 11:23 UTC: These patches fix the Perl/Tk chatterbox client (or so it would seem). Re^2: Problem installing TK module by syphilis (Archbishop) on Mar 31, 2015 at 23:32 UTC. an icon of a white box with a title bar of sorts). 028-1 on x86 Cygwin. When I click and drag, it only partly works. Tk_MainWindow find the main window for an application Tk_MaintainGeometry maintain geometry of one window relative to another Tk_ManageGeometry arrange to handle geometry requests for a window Tk_MapWindow map or unmap a window Tk_MoveToplevelWindow Adjust the position of a top-level window Tk_Name convert between names and window tokens Tk If you are in a Unix environment you are out of luck. I also want to check the windows disk space within same script. Apr 23, 2001 #1 dara Technical User. And sorry as of now I don't have code its just an idea. Name: default Class: Default Switch: -default Specifies one of three states for the default ring: normal, active, or disabled. I searched the Perl directory for stat. If one is chosen and another button is clicked, the last chosen will lose its state and the clicked button will be chosen. If I define a new window, is there a way to disable the maximize/minimize/close buttons on the top right of the window? Perl TK Disable Maximize/Minimize/Close-X Thread starter clueo8; Start date Jul 7, 2005; Status Not open for further replies. Please test and let me know if there are any problems. You also Windows and Dialogs: Part of a Modern Tk Tutorial for Python, Tcl, Ruby, and Perl. All these formats require the cmd window to appear until the command finishes. shiraz-shah September 6, 2024, 11:47am 18. Adding Choices To A Menubar. By default, there is a callback assigned by Perl/Tk that destroys the window. Tk::UserGuide - Writing Tk applications in Perl 5. If you leave the focus on one of this If the choice is between a "free-floating" xterm (launched by your perl/tk app) vs. It returns the value that the process used as the exit code (with more flags in the high byte). cpanp i Tk. . Window showing all the default bitmaps. A very good book is &quot;Learning Perl/Tk&quot; by Nancy Walsh published by O'Reilly. When running a perl script from a windows 2000 server command window, a GUI pops up as programmed and is active. Oct 29, 2003 #1 tazhicham Programmer. With its port to Perl, Tk gives Perl programmers the same control over the graphical desktop that Tcl programmers have Widgets 3 : Radiobutton, Checkbutton Radiobutton Radiobutton is an input where any one of many choices MUST be chosen. Re: Tk Modal Window by Anonymous Monk on Oct 23, 2002 at 14:29 UTC: Just a quick question: I have done this very same thing before. BEGIN failed--compilation aborted at hello. pm in @INC <@inc CONTAINS C:\Perl\lib C:\Perl/site/lib. This document is for beginners. After clicking a button in the active window, the window How can I close a window in Perl/Tk? 0. Using a Balloon widget, you can create help-text-like labels that appear as the mouse hovers over a widget. I put the two frames that are gonna swap places inside of a wrapper frame, so that they're the only widgets that will appear in those frames (for ease of use if you packForget something and then pack it again, the order of widgets might become incorrect you'd find that out through experimentation. For some reason, I can use Tk::Photo to load and display GIF’s, but I can’t seem to get it to work with JPG’s or PNG’s. But I think a cross-platform approach would be better. So my GUI (that is, Perl/Tk) application displays a window that captures user input in fields, etc. To install Tk, copy and paste the appropriate command in to your terminal. Thanks for that. If you did try it, it would be worthwhile to post your findings about that. Re^2: Saving Contents of Perl/Tk Display to a File by liverpole (Monsignor) on Feb 03, 2006 at 00:39 UTC. The aim is maximum user configurability and ease of application building. (Or of course use a GUI package, like Perl/Tk that OP is using) Unfortunately, you can't pass a reference to a Perl list for this listvariable parameter. To use it, just associate the shortcut for your Perl/Tk application with 1. Here my requirement is that the window has to display in the bottom right corner. HI, From mine main window I activate a systen xcopy on a 4GB folder. You took that code from this thread (which has exactly the same name): asynchronous socket comunication with perl tk In that thread, the request was for: " an example of asynchronous socket communication happening One thing a Checkbutton might do immediately when clicked is alter the appearance of the window. On other computers I've tried, the same code would produce a window with all three buttons on them. Any Tk application starts by creating the Tk main window. (see video below for details), If you do uninstall it through the Window control panel "add/remove programs", if you still have a C:\Strawberry folder rename or delete it Download and install Strawberry Perl. This appears to work for 32bit Windows, could you tell me how to install TK for 64 bit Windows? Re^3: installing Tk for strawberry by Anonymous Monk on Jan 23, 2012 at 07:51 UTC. Re: asynchronous socket communication with perl tk by kcott (Archbishop) on Sep 25, 2013 at 13:18 UTC: G'day simonz,. This gives anti-aliased fonts for regular text (if you have TrueType or Type1 fonts and they are in your fontconfig config file). method may be used to change this order for a particular window or to associate additional binding tags with the window. I will try this. It certainly won't push down the desktop itself. I'm using TK::NoteBook and wonder if I could add the 'scroll' feature in each tab window to resolve the missing items dealing with monitor resolution issue but is that a limitation to add 'scroll' feature in TK::NoteBoot? Perl: Getting the geometry of a window with X11 WindowID. I’m experimenting around with Tk using StrawberryPerl, and I’m practicing/experimenting with displaying images. google. This seems to produce the desired behavior, but has the unfortunate side effect of a rather twitchy cursor and significant slow down (at least when running across the network) when I'm doing many updates in rapid succession (e. a (which should ship with strawberry). 22y 2,937. Thank you Ken. 4. If you need a window that behaves like a traditional dialog they can a much simpler option that building your own. TK: close window after 10 seconds, please help 1. Subclassing a Perl/Tk widget is also known as creating a derived (mega) widget. Jan 21, 2006 1,179 US. Tk Active Window problem Thread starter mlibeson; Start date Mar 22, 2005; Status Not open for further replies. You can also use it to create help text that appears in a status bar. Thanks Long live king Moshiach ! Having mastered the art of specifying a size for a MainWindow when I launch it (using a call to geometry()) I face my newest challenge: resizing the window. I have a Perl script that generates a display window containing various informational text in varying "Science is about questioning the status quo. I want to embed a terminal in my main Tkinter window. The Perl/Tk - refresh window 1. In this I want to display the require window using Perl/Tk. opinion is indistinguishable from prejudice. So, you'll need to do the conversion yourself. Aug 20, 2006 #1 MoshiachNow IS-IT--Management. Upvote 0 Downvote. Tk-TableMatrix - a spreadsheet-like widget for Perl/Tk - Tk-TableMatrix/README at master · asb-capfan/Tk-TableMatrix Specifies a perl/Tk callback to associate with the button. The main window had a menu, a text-box and a few buttons and checkboxes. by spikey_wan (Scribe) on May 27, 2004 at 15:40 UTC. Back to Seekers of Perl Wisdom. i'd like to know how to change the color of the window i created. But the created GUI window size differs in different system. On Win32, Tk windows have a default icon of the letters "Tk" with red text, and the rest of the icon is transparent. Re^2: perlTk opening new window by wisemonkey (Novice) on Oct 26, 2010 at 00:40 UTC. The Tk::Widget is an abstract base class for all Tk widgets. Windows -> *nix) and Perl is also becoming more familiar (it's actually surprisingly powerful). 0 and subsequent porting to Perl. Re^2: open windows explorer and select file for processing by Marshall (Canon) on Jul 06, 2016 at 18:17 UTC. by ikegami (Patriarch) on Sep 02, 2005 at 08:24 UTC. The method examples included in the modules don't really Hi! I'm little new to (Perl/)Tk and was wondering if it's possible to create new windows in runtime or create entry boxes in run time when needed. This would be a I have planned to do the chatting the exercise Perl socket. Re: how can i create a scrollbar in the main window using perl tk by imrags (Monk) on Dec 18, 2008 at 07:16 UTC Figure 4-7. And with threading, the situation gets more complicated because Perl/Tk likes to treat threads special, and I haven't found any info on I need graphical output from a Perl program. You then create items inside the MainWindow, and/or create new windows called Toplevels that also contain child items, before starting the One caveat about Tk, and it's a serious one. It worked in the sense that there were two (not one) X buttons - one for the dialog and one for the main window, and both responded to click event. A Graphic Authorizing Example. However, what I mean by "pushing the window down" is that, for instnace, if this "ad window" is at the very top of the screen and the user wants to look at his/her desktop (with the icons on it), the top of the desktop should only reach the bottom of the ad window. If you use ActiveState's Perl, you can download/install Tk using ppm provided you are either using one of the two most recent version or you are paying for an "enterprise" license. ivbw vdr tdd ehdux qebtx zffjiu mtqqrh lashv mrlrrdw stcv