You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Below is the current implementation of the Image class. This does not allow for an image widget to be created with no specified path, which is quite useful when you are creating the layout but do not yet know which image you are to load.
class Image < Basic
def initialize args
@path = args[:path]
args.delete :path
super args
end
def path=(name)
@path = name
@real.clear
args = {width: @width, height: @height, noorder: true}
args.merge!({hidden: true}) if @hided
@real = @app.image(name, args).move(@left, @top).real.tap{@app.flush}
end
...
end
The text was updated successfully, but these errors were encountered:
Below is the current implementation of the
Image
class. This does not allow for an image widget to be created with no specified path, which is quite useful when you are creating the layout but do not yet know which image you are to load.The text was updated successfully, but these errors were encountered: