- Posts: 11
- Thank you received: 0
Axis Modifications
- Cheech
- Offline
- New Member
-
Less
More
10 years 6 months ago #73467
by Cheech
Replied by Cheech on topic Axis Modifications
HI Andy,
I am studying the axis.py file and I made modifications to it but I have an acess privilege problem and Debian won't let me update it
Do you know how I can set the usr/bin to read and write, or better, how come I am not the admin because I am definitely the owner of the system
The owner of the usr folder is set to root(root) according to the File Manager/Properties.
Cheers,
Francisco
I am studying the axis.py file and I made modifications to it but I have an acess privilege problem and Debian won't let me update it
Do you know how I can set the usr/bin to read and write, or better, how come I am not the admin because I am definitely the owner of the system
Cheers,
Francisco
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
10 years 6 months ago - 10 years 6 months ago #73469
by andypugh
You need to open the editor with admin privileges.
So, in a terminal, use "sudo gedit" or "sudo mousepad" (or, depending on taste, sudo vi, sudo nano etc)
If you have already made the changes, then save the axis.py somewhere in your own folder, then move it to the required location
(don't type the ellipses. of course, those are placeholders for the actual paths on your machine)
Replied by andypugh on topic Axis Modifications
Cheech wrote: I am studying the axis.py file and I made modifications to it but I have an acess privilege problem and Debian won't let me update it
You need to open the editor with admin privileges.
So, in a terminal, use "sudo gedit" or "sudo mousepad" (or, depending on taste, sudo vi, sudo nano etc)
If you have already made the changes, then save the axis.py somewhere in your own folder, then move it to the required location
Code:
sudo mv ~/..../axis.py /usr/..../axis.py
Last edit: 10 years 6 months ago by andypugh.
Please Log in or Create an account to join the conversation.
- kentavv
- Offline
- Junior Member
-
Less
More
- Posts: 26
- Thank you received: 1
10 years 4 months ago - 10 years 4 months ago #76857
by kentavv
Replied by kentavv on topic Axis Modifications
With LinuxCNC 2.7.4 (Debian Wheezy), the above maximize code was an improvement, but didn't fully maximize the Axis screen, which was shifted down and to the right.
I had better luck with the following, where tb_h is the height of the window manager's toolbar. But this also didn't actually maximize Axis like the maximize button does.
The following seems to work well. It makes Axis fullscreen, which also hides the window manager's toolbar (less distraction and more space for Axis). While this may prevent getting back to the toolbar without closing axis, if a terminal is left open, and sessions are saved, alt-tab will get you back. There's probably some other shortcut as well.
Full disclaimer: I know nothing about Tk... this is just what seemed to work well for me. Hope others find it useful.
I had better luck with the following, where tb_h is the height of the window manager's toolbar. But this also didn't actually maximize Axis like the maximize button does.
Code:
tb_h = 32
root = root_window
w, h = root.winfo_screenwidth(), root.winfo_screenheight() - tb_h*2.5
root.geometry("%dx%d+%d+%d" % (w, h, 0, tb_h))
The following seems to work well. It makes Axis fullscreen, which also hides the window manager's toolbar (less distraction and more space for Axis). While this may prevent getting back to the toolbar without closing axis, if a terminal is left open, and sessions are saved, alt-tab will get you back. There's probably some other shortcut as well.
Code:
root_window.attributes('-fullscreen', True)
Full disclaimer: I know nothing about Tk... this is just what seemed to work well for me. Hope others find it useful.
Last edit: 10 years 4 months ago by kentavv. Reason: Added code tags
The following user(s) said Thank You: Cheech
Please Log in or Create an account to join the conversation.
- dgarrett
- Offline
- Platinum Member
-
Less
More
- Posts: 492
- Thank you received: 297
10 years 2 months ago #79729
by dgarrett
Replied by dgarrett on topic Axis Modifications
Recent python/tkinter may report maxgeo as a tuple
Code:
maxgeo=root_window.tk.call("wm","maxsize",".")
print "maxgeo=",maxgeo,type(maxgeo)
if type(maxgeo) == tuple:
fullsize=str(maxgeo[0]) + "x" + str(maxgeo[1])
else:
fullsize=maxgeo.split(' ')[0] + 'x' + maxgeo.split(' ')[1]
root_window.tk.call("wm","geometry",".",fullsize)
Please Log in or Create an account to join the conversation.
- skunkworks
- Offline
- Moderator
-
Less
More
- Posts: 351
- Thank you received: 153
10 years 2 months ago #79735
by skunkworks
Replied by skunkworks on topic Axis Modifications
I am having an odd issue related to (ti seems) jessie and Gome/cinnamon.
Axis opens minimized it seems - or at least you cannot see it. It shows up in the task bar and you can alt-tab to it. (or click on the task bar )
I have tried all the above. It effects the size of axis - but axis still isn't visible until you click on the task bar or alt-tab to it.
Couple of things
-axis seems to be the only gui that shows this behavior.
-I also have mate installed - axis opens normally.
sam
Axis opens minimized it seems - or at least you cannot see it. It shows up in the task bar and you can alt-tab to it. (or click on the task bar )
I have tried all the above. It effects the size of axis - but axis still isn't visible until you click on the task bar or alt-tab to it.
Couple of things
-axis seems to be the only gui that shows this behavior.
-I also have mate installed - axis opens normally.
sam
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
Less
More
- Posts: 4793
- Thank you received: 1480
10 years 2 months ago - 10 years 2 months ago #79741
by Todd Zuercher
Replied by Todd Zuercher on topic Axis Modifications
Not sure, maybe an OpenGL problem.
I have LMDE with the Cinnamon desktop installed in a VM and Linuxcnc/Axis is not having those problems for me.
However I have done a few RIP installs of Linuxcnc from source on that VM, so it has had a lot of dependency stuff installed to it that a fresh install from binaries probably wouldn't have..
I have LMDE with the Cinnamon desktop installed in a VM and Linuxcnc/Axis is not having those problems for me.
However I have done a few RIP installs of Linuxcnc from source on that VM, so it has had a lot of dependency stuff installed to it that a fresh install from binaries probably wouldn't have..
Last edit: 10 years 2 months ago by Todd Zuercher.
Please Log in or Create an account to join the conversation.
Time to create page: 0.556 seconds