NEWS
LinuxCNC 2.5.2 Release
LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 

Welcome, Guest
Username: Password: Remember me

TOPIC: Creating a GUI

Re:Creating a GUI 07 Aug 2012 20:56 #22964

  • cmorley
  • cmorley's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1489
  • Thank you received: 40
  • Karma: 89
Michael

That is great documentation too!
It's very good to see documentation on some of the inner workings of linuxcnc - lowers the barrier for new developers.
(you actually make a habit of good documentation!)

have any idea how SPINDLE_CONSTANT works? I assume it means constant surface speed...

Chris M
The administrator has disabled public write access.

Re:Creating a GUI 08 Aug 2012 01:48 #22970

  • mhaberler
  • mhaberler's Avatar
  • OFFLINE
  • Moderator
  • Posts: 197
  • Thank you received: 8
  • Karma: 54
cmorley wrote:
Michael

have any idea how SPINDLE_CONSTANT works? I assume it means constant surface speed...

Chris M

The linuxcnc forensics & reverse engineering department has determined it's a noop:

from git.linuxcnc.org/gitweb?p=linuxcnc.git;a...52410e7a786578#l1430

maybe Alex Joni can shed some light on this:

$ git blame src/emc/task/taskintf.cc
...
1d62729f (Alex Joni 2006-07-10 21:35:34 +0000 1421) int emcSpindleConstant()
1d62729f (Alex Joni 2006-07-10 21:35:34 +0000 1422) {
1d62729f (Alex Joni 2006-07-10 21:35:34 +0000 1423) return 0; // nothing to do
1d62729f (Alex Joni 2006-07-10 21:35:34 +0000 1424) }
The administrator has disabled public write access.

Re:Creating a GUI 08 Aug 2012 04:09 #22972

  • BigJohnT
  • BigJohnT's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 4960
  • Thank you received: 87
  • Karma: 134
cmorley wrote:
hey John I looked at your tutorial..

couple things I noticed maybe you already know...
in 3b the python code...
This is not needed:

# language stuff I think
import gettext
LOCALEDIR = os.path.join(BASE, "share", "locale")
gettext.install("linuxcnc", localedir=LOCALEDIR, unicode=True)
gtk.glade.bindtextdomain("linuxcnc", LOCALEDIR)
gtk.glade.textdomain("linuxcnc")
TCLPATH = os.environ

Also when putting the new screen in /bin you don't need to remove the .py part.
DISPLAY=gui3.py
will work.
The reason I mention this is if someone is testing it is nice if the editor knows the file is python.

great work though! is your plan to add it to the official docs ?

I wasn't really sure what the heck that code did... but I do know when I was importing the support libraries from touchy it was needed for some reason.

I was just blindly following the leader in removing the .py....

I've not given any thoughts to adding the tutorials to the docs yet but that is a good idea once they are polished up. I think for now I'll add some links here and on the wiki.

I added links to the wiki and the documents page here.

Thanks
John
Last Edit: 08 Aug 2012 04:44 by BigJohnT.
The administrator has disabled public write access.

Re:Creating a GUI 01 Sep 2012 07:01 #23829

  • BigJohnT
  • BigJohnT's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 4960
  • Thank you received: 87
  • Karma: 134
I just gotta tell someone... I've been making progress on writing a GUI from scratch. The latest hurdles have been testing for a postgui file and running it if found, jogging the axes around and getting the value from a slider to control my jog speed and presetting the slider to a default value on start up and enabling part of the screen based on conditions like is the estop out and power on.



I'll work on adding gui 6 to the custom gui tutorial. This will add a lot of information about building your own GUI.

John
Last Edit: 01 Sep 2012 07:04 by BigJohnT.
The administrator has disabled public write access.

Re:Creating a GUI 01 Sep 2012 07:44 #23830

  • cmorley
  • cmorley's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1489
  • Thank you received: 40
  • Karma: 89
I sent a message about this on the mail list.
This is great work John! I think a lot of people will find this useful and will break down another guru barrier.
Thanks for sharing.

Chris M
The administrator has disabled public write access.

Re:Creating a GUI 01 Sep 2012 07:53 #23832

  • BigJohnT
  • BigJohnT's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 4960
  • Thank you received: 87
  • Karma: 134
Chris,

Thanks for the explanation on the mailing list. It is clearer to me now.

John
The administrator has disabled public write access.
Time to create page: 1.688 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.