Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Can't call method "get_screen" on an undefined value

by kennethk (Abbot)
on Mar 06, 2014 at 15:44 UTC ( #1077246=note: print w/replies, xml ) Need Help??


in reply to Can't call method "get_screen" on an undefined value

First, I note that the phrase get_screen does not appear on line 21. This means that the error message you are reporting cannot come from your posted code. If you'd like help debugging, please post the code you are actually running when the error message is issued. Also please wrap error messages in <code> tags, just to make sure nothing gets mangled. Please see How do I post a question effectively?.

Errors of this type are issued when you invoke a method on a variable that is currently undefined. I'm guessing that since the phrase get_screen only appears on line 14 with $window, $window is undefined. This probably means your initialization call on line 11 failed. So I'd start there.


#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

Replies are listed 'Best First'.
Re^2: Can't call method "get_screen" on an undefined value
by hakim-djz (Novice) on Mar 13, 2014 at 10:46 UTC
    Thanks for the advice. I realised I had the wrong names set from Glade. So instead of 'window1' I had 'Retro-Fi'. So just changed them and it's all working fine. Thanks again

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1077246]
help
Chatterbox?
[Corion]: Two-way data binding means that if you change something in a text box, the corresponding variable in your Javascript gets updated immediately as well, and if you then change the variable, the corresponding text box also gets updated
[Corion]: That is a horrible approach that was also taken by Access, but if you have hooks that prevent automatic saving to the database, it is incredibly handy

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2017-03-30 07:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (355 votes). Check out past polls.