-
-
Save pradhuman7d1/bf7f1d1083d9b4b0f967ddce7a250417 to your computer and use it in GitHub Desktop.
virtualos_go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Can we add any more functionalities in our OS ? | |
ans) Definitely, and I'll appreciate your efforts if you do so, you can try to | |
tweak this and add simple stuffs like, changing the background image on press of a button. | |
2) How can i integrate a new App into the existing os ? | |
ans) Simply, copy your app source file into the main project directory and modify its main fuction with a name and | |
create another button in the main source file of the project and in its callback, simply call you apps function. | |
3) Why we make variables global here ? | |
ans) we make our necessary variables global here because we need to intigrate multiple files together and | |
for this purpose we make global variables, to use them throughout our project. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.why we kept calculator and text editor in seperate window ? | |
a)due to heavy load in hardware | |
b)it will lead to crash in window | |
c)we want to preserve their dynamic property | |
d)none of these | |
ans) c) we want to preserve their dynamic property | |
2) Why we used an '*' while declaring the container named panelContent (var panelContent *fyne.container)? | |
a) to pass its reference so it can be used in all files | |
b) to save space | |
c) it can be ignored | |
d) it makes our code smaller | |
ans) a) to pass its reference so it can be used in all files | |
3) Which code is correct for setting theme of our virtual os to light theme ? | |
a) myApp.Settings().SetTheme(LightTheme()) | |
b) myApp.Settings().SetTheme(fyne.LightTheme()) | |
c) myApp.Settings().SetTheme(theme.LightTheme()) | |
d) myApp.Settings().SetTheme(fyne.theme.LightTheme()) | |
ans) c) myApp.Settings().SetTheme(theme.LightTheme()) | |
4.what does the canvas function "NewImageFromFile" do ? | |
a) shows an image sourced from a local directory on GUI | |
b) saves an image to our local directory | |
c) copies the image to working directory | |
d) none of these | |
ans) a)shows an image sourced from a local directory on GUI |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment